/django-conman

A content management system for django

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

django-conman

Coverage Status Build Status Wheel Status Requirements Status

A CONtent MANagement system for Django. (Get it?)

Sponsored by Incuna.

Requirements

Tested against:

  • Python 3.4, 3.5, 3.6
  • Django >=1.8

Requires (should be automatically installed if using pip):

  • django-polymorphic

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):
    # Your data/fields here
    ...
    view = ExampleRouteDetail.as_view()

# views.py
class ExampleRouteDetail(django.views.generic.DetailView):
    def get_object(self):
        return self.kwargs['route']