incuna / feincms-pages-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feincms-pages-api Build Status

Custom FeinCMS pages with navigations exposed through the Django Rest framework.

Installation

pip install feincms-pages-api

In settings.py

INSTALLED_APPS = (
    ...
    'pages',
    ...
),

In your urls.py

urlpatterns = patterns(''
    ...
    url('', include('pages.urls', namespace='pages')),
    ...
)

Or if you need more controls over what you're importing

urlpatterns = patterns(
    ...
    url(r'', include('pages.urls.page', namespace='pages')),
    url(r'', include('pages.urls.group', namespace='pages')),
    ...
)

Migrations

feincms-pages-api does not include migrations, so you will need to add it to the MIGRATION_MODULES setting:

MIGRATION_MODULES = {
    'pages': 'path.to.migrations',
}

About

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 99.0%Language:Makefile 1.0%