Simple django app to organize page content like flat pages with tree blocks structure. Also, it can add extra content to any page in other apps.
- django-helpful
- sorl-thumbnail
- django-rest-framework
- Add
"apps.context",
toINSTALLED_APPS
- Add
"apps.cms.context_processors.page",
tocontext_processors
- Add
"apps.content.middleware.PageMiddleware",
toMIDDLEWARE
- Add to urls.py
path("", include("apps.content.urls")),
- Run
migrate content
If you want to use template replacement you must use
TemplateResponse
instead of render
in you views.
If you want to use multilanguage you must install django-modeltranslation
,
define LANGUAGES in settings and use "middleware.SwitchLocaleMiddleware",
to change languages.
- Update templates
- Refactor templatetags
- URLs for blocks
- PyPI
- Documentation
- Tags
- Exptra meta data
- Structure for news as archive
- django-portfolio
- django-gallery
- django-files