Installation

This part of the documentation will guide you through the steps of how you install and configure Djedi CMS in your Django project.

Install

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.

Source

You can always fork or clone Djedi CMS at Github

$ git clone [email protected]:5monkeys/djedi-cms.git

Configure

Add djedi to INSTALLED_APPS and suitable djedi middleware to MIDDLEWARE_CLASSES:

# settings.py

INSTALLED_APPS = (
    # ...
    'djedi',
)

MIDDLEWARE_CLASSES = (
    'djedi.middleware.translation.DjediTranslationMiddleware',
    # ...
)

Bootstrap database

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

Enable admin

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')),
)

Table Of Contents

Related Topics

This Page