Django content management as it should be
Install djedi cms using pip in your desired python environment
$ pip install djedi-cms
Note: djedi-cms is built on top of the content pipeline library content-io
- Add
djedi
toINSTALLED_APPS
- Manage syncdb (if using default django model djedi backend)
- Enable django admin or include
djedi.urls
in your root urls with namespaceadmin
- Add suitable djedi middleware early in
MIDDLEWARE_CLASSES
:
MIDDLEWARE_CLASSES = (
'djedi.middleware.translation.DjediTranslationMiddleware',
# ...
)
Load djedi_tags
in a template and use node
or blocknode
tag
{% load djedi_tags %}
<body>
<h1>{% node 'page/title.txt' default='Djedi' %}</h1>
{% blocknode 'page/body.md' %}
## I'm a djedi apprentice
This is fun!
{% endblocknode %}
</body>