Skip to main content
A flatpages/flatblock application using generic relations to content models.
Home-page: https://github.com/bartTC/django-generic-flatblocks
Author: Martin Mahner
Author-email: martin@mahner.org
License: MIT
Description: .. image:: https://img.shields.io/pypi/v/django-generic-flatblocks.svg
:target: https://pypi.org/project/django-generic-flatblocks/

.. image:: https://travis-ci.org/bartTC/django-generic-flatblocks.svg?branch=master
:target: https://travis-ci.org/bartTC/django-generic-flatblocks

.. image:: https://api.codacy.com/project/badge/Coverage/606e8ced3f0a48ee8a4b623cd8314b72
:target: https://www.codacy.com/app/bartTC/django-generic-flatblocks

.. image:: https://api.codacy.com/project/badge/Grade/606e8ced3f0a48ee8a4b623cd8314b72
:target: https://www.codacy.com/app/bartTC/django-generic-flatblocks

----

📖 **Full documentation: https://docs.elephant.house/django-generic-flatblocks/**

=========================
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/



=========
Changelog
=========

v1.3 (2019-03-16):
------------------

- Django 2.1 compatibility and tests.
- Python 3.7 compatibility and tests.
- Pipenv support.
- General code and package cleanup.

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

Keywords: django,snippets,text,models,flatblock,flatpages
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Framework :: Django
Requires-Python: '>=2.7'

Release files for django-generic-flatblocks 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-generic-flatblocks 1.3
File Size Uploaded
django-generic-flatblocks-1.3.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-generic-flatblocks 1.3
File Interpreter ABI Platform
django_generic_flatblocks-1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 44.5 kB

Release files / django-generic-flatblocks-1.3.tar.gz

Download URL django-generic-flatblocks-1.3.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d378c90e3f470334b61bf03cc596e66268a341713e9549d681dd0d513860e699
BLAKE2b-256 checksum
How to use checksums
0e67938697037233e1aacf683f91ae9fa56cd4980ccfb3c17703324ca6d64519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

Release files / django_generic_flatblocks-1.3-py2.py3-none-any.whl

Download URL django_generic_flatblocks-1.3-py2.py3-none-any.whl
Size 21.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bd74f10e58db525c021ce282dec64fb5d0782c4e6d6e1a1f5a9fd402787dea0c
BLAKE2b-256 checksum
How to use checksums
efe46104100bde147e700a9dfdaf152501a5b025a046bba32a46ec732895adae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2.1

2 release files

1.2

2 release files

1.1.1

1 release file

1.1

1 release file

1.0

1 release file

0.9.1

2 release files

0.9

1 release file

0.3.0

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page