This part of the documentation will guide you through the steps of how you install and configure Djedi CMS in your Django project.
Djedi CMS is easiest installed from the cheese shop using pip:
$ pip install djedi-cms
Note: Plugins may require additional eggs like Markdown and Pillow (PIL) which is described in the Plugins section.
You can always fork or clone Djedi CMS at Github
$ git clone [email protected]:5monkeys/djedi-cms.git
Add djedi to INSTALLED_APPS and suitable djedi middleware to MIDDLEWARE_CLASSES:
# settings.py
INSTALLED_APPS = (
# ...
'djedi',
)
MIDDLEWARE_CLASSES = (
'djedi.middleware.translation.DjediTranslationMiddleware',
# ...
)
If you’re using the default djedi settings, the built-in django storage backend will be used and you need to synchronize your database.
$ django-admin.py syncdb
Note: It is recommended that you use South to migrate your database:
$ django-admin.py migrate djedi
If the Django AdminSite already is enabled, and included, in your root urls, then you’re good to go.
# urls.py
from django.conf.urls import patterns, include
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
)
If you’re not using, or don’t want to use, Django admin you can always include djedi.urls within the admin namespace instead.
# urls.py
urlpatterns = patterns('',
(r'^djedi/', include('djedi.urls', namespace='admin')),
)