Fancy CMS-style page editing for Django
The idea of fanycpages is to provide some easy inline editing of pages. Another content management system, you ask? Know it is not! We rather call it a content enhancement system (CEnS) because it provides a user with the controlled ability to edit content on a page.
The way this Django app works is inspired by django-frontend-admin, django-content-blocks and other similar apps. Especially, the use of template tags to define customisable sections in a Django template is based on the ideas in the two apps mentioned above.
django-fancypages in your own project follows these steps to get
everything up and running:
install via pip into you virtualenv (for now you have to install from the github repo because we haven't released it to PyPI yet):$ pip install git+https://github.com/tangentlabs/django-fancypages.git
add the required apps to your
INSTALLED_APPSby simply using the convenience function
fancypagesmodule:YOUR_OTHER_APPS = ( ... ) INSTALLED_APPS = YOUR_OTHER_APPS + get_apps()
Add the editor middleware that provides the editting panel to every fancypage or page that contains an FP container:MIDDLEWARE_CLASSES = ( ... 'fancypages.middleware.EditorMiddleware', )
Add the urls for
django-fancypagesto your project's main
urls.py. Make sure that it is at the end of you definitions otherwise the it will prevent your other URLs from working because it defines a rather generic URL pattern for its pages:urlpatterns = patterns('', ... url(r'^', include(fancypages.urls)), )
That's been a bit of work, hasn't it? Well done! Your should now be able to
access the fancypages dashboard after staring the Django server by running
./manage.py runserver or whatever else you do for that. A very basic
dashboard should now be available at:
Projects Using Fancypages
- The Chocolate Box: https://www.chocolatebox.com.au
- Which Right Choice: https://www.whichrightchoice.com
- Freetix: https://www.freetix.com
Oscar is released under the permissive New BSD license.