A CONtent MANagement system for Django. (Get it?)
Sponsored by Incuna.
Tested against:
- Python 3.4, 3.5, 3.6
- Django >=1.8
Requires (should be automatically installed if using pip
):
django-polymorphic
# From PyPI...
pip install django-conman
# ...or from source
pip install -e git+https://github.com/meshy/django-conman.git#egg=conman
# settings.py
INSTALLED_APPS += ['conman.routes']
# urls.py
urlpatterns = [
# All other URLS should go above this catch-all.
url(r'', include('conman.routes.urls')),
]
# 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']