django-conman
A CONtent MANagement system for Django. (Get it?)
Sponsored by Incuna.
Requirements
Tested against:
- Python 3.4
- Django 1.7
Requires:
django-mptt
django-polymorphic-tree
django-sirtrevor
Install
# From PyPI...
pip install django-conman
# ...or from source
pip install -e git+https://github.com/meshy/django-conman.git#egg=conman
Configure
# settings.py
INSTALLED_APPS += ['conman.routes']
# urls.py
urlpatterns = [
# All other URLS should go above this catch-all.
url(r'', include('conman.routes.urls')),
]
Basic custom app
# models.py
class ExampleRoute(conman.routes.models.Route):
handler = ExampleHandler.path()
# Your data/fields here
# handlers.py
class ExampleHandler(conman.routes.handlers.SimpleHandler):
view = ExampleRouteDetail.as_view()
# views.py
class ExampleRouteDetail(django.views.generic.DetailView):
def get_object(self):
return self.kwargs['route']