A flatpages/flatblock application using generic relations to content models.
Project description
.. image:: https://travis-ci.org/bartTC/django-generic-flatblocks.svg?branch=master
:target: https://travis-ci.org/bartTC/django-generic-flatblocks
.. image:: https://codecov.io/github/bartTC/django-generic-flatblocks/coverage.svg?branch=master
:target: https://codecov.io/github/bartTC/django-generic-flatblocks?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.
.. _`django-flatblocks`: http://github.com/zerok/django-flatblocks/tree/master
.. _`django-chunks`: http://code.google.com/p/django-chunks/
Documentation
=============
Documenation is available online under:
http://readthedocs.org/docs/django-generic-flatblocks/en/latest/
Changelog
=========
v1.2.1 (2018-02-18):
------------------
- Python backwards compatbility and coverage improvements.
v1.2 (2018-02-18):
------------------
- Django 2.0 compatibility and tests.
v1.1.1 (2017-04-30):
--------------------
- Django 1.11 compatibility and tests.
v1.1 (2017-03-18):
------------------
- Django 1.10 compatibility and tests.
- Python 3.6 compatibility.
- `TEMPLATE_DEBUG` setting is no longer honored to raise individual
errors, in favor of standard `DEBUG`.
v1.0 (2016-03-23):
------------------
- Code cleanup and update for Django 1.8+. Python3 Support. Better
test integration. Better docs.
v0.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
:target: https://travis-ci.org/bartTC/django-generic-flatblocks
.. image:: https://codecov.io/github/bartTC/django-generic-flatblocks/coverage.svg?branch=master
:target: https://codecov.io/github/bartTC/django-generic-flatblocks?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.
.. _`django-flatblocks`: http://github.com/zerok/django-flatblocks/tree/master
.. _`django-chunks`: http://code.google.com/p/django-chunks/
Documentation
=============
Documenation is available online under:
http://readthedocs.org/docs/django-generic-flatblocks/en/latest/
Changelog
=========
v1.2.1 (2018-02-18):
------------------
- Python backwards compatbility and coverage improvements.
v1.2 (2018-02-18):
------------------
- Django 2.0 compatibility and tests.
v1.1.1 (2017-04-30):
--------------------
- Django 1.11 compatibility and tests.
v1.1 (2017-03-18):
------------------
- Django 1.10 compatibility and tests.
- Python 3.6 compatibility.
- `TEMPLATE_DEBUG` setting is no longer honored to raise individual
errors, in favor of standard `DEBUG`.
v1.0 (2016-03-23):
------------------
- Code cleanup and update for Django 1.8+. Python3 Support. Better
test integration. Better docs.
v0.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-generic-flatblocks-1.2.1.tar.gz
.
File metadata
- Download URL: django-generic-flatblocks-1.2.1.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93e85536942040fd650a085cb80b3c336abb7dc0c81ca51d7024a0eeaf788a0b |
|
MD5 | f0de910ebc60431493d7c2a39208f08b |
|
BLAKE2b-256 | 85b956329536afe9a00e0aed19a2a83c1aedd4036c9b5d25f510b08d163863df |
File details
Details for the file django_generic_flatblocks-1.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_generic_flatblocks-1.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c715656c2fc43cc6008fabcfbaa4912eca7d02eaedb5ffc4001a808c96875418 |
|
MD5 | 0faeb17d7ff7694073fdb877e7a8af1c |
|
BLAKE2b-256 | 36141ce9d94aba9543eedfacff0c6ebf34d7cf4ad7e071ca867073adce3b463c |