Skip to main content

A flatpages/flatblock application using generic relations to content models.

Project description

https://travis-ci.org/bartTC/django-generic-flatblocks.svg?branch=master https://codecov.io/github/bartTC/django-generic-flatblocks/coverage.svg?branch=master

django-generic-flatblocks

If you want to add tiny snippets of text to your site, manageable by the admin backend, you would use either django-chunks or django-flatblocks. However, both of them have one problem: you are limited to a predefined content field; a “text” field in chunks and a “title” and “text” field in flatblocks.

django-generic-flatblocks solves this problem as it knows nothing about the content itself. You attach your hand made content node (a simple model) where you can define any fields you want.

Documentation

Documenation is available online under:

http://readthedocs.org/docs/django-generic-flatblocks/en/latest/

Changelog

1.0 (2016-03-23)
  • Code cleanup and update for Django 1.8+. Python3 Support. Better test integration. Better docs.

0.9.1 (2010-03-22)
  • Django 1.2 compatibility! Fixed a bug where tests did not pass under Django 1.2. Thanks to Brian Rosner for this.

v0.9 (2010-02-25)
  • Fixed a bug where an integer was not allowed as a part of a slug.

v0.4 (2009-09-08)
  • Added Danish translation.

  • Added better documentation.

  • Added unittests.

  • If you fetch a not existing “primary key” object the templatetag will fail silently if settings.TEMPLATE_DEBUG is False.

v0.3.0 (2009-03-21)
  • Added the into argument. You can now display any instance directly without creating and rendering a template.

v0.2.1 (2009-03-20)
  • You can now pass a context variable with a integer to fetch a specific object.

v0.2.0 (2009-03-20)
  • Added the ability to pass an integer as slug. This will cause that the templatetag fetches the specific for model with the primary key named in slug.

v0.1.2 (2009-03-20)
  • Switched from distutils to setuptools. Fixed whitespace.

v0.1.1 (2009-03-15)
  • Fixed wrong upload path of a contributed, generic block

v0.1 (2009-03-13)
  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-generic-flatblocks-1.0.tar.gz (12.5 kB view details)

Uploaded Source

File details

Details for the file django-generic-flatblocks-1.0.tar.gz.

File metadata

File hashes

Hashes for django-generic-flatblocks-1.0.tar.gz
Algorithm Hash digest
SHA256 b2ac21b052d7eb61e4670d241eb25f142c073a6d567358f8cd93d13aaf9a88c2
MD5 46e91a0d9f6220d806e7a370021be04c
BLAKE2b-256 4b9e5857f5a924d55ed386cb3a40ce9e7bc81bf7dd4b1748692995173b6f2897

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page