Below are the basic steps need to get django-comps integrated into your Django project.
You need to include comps to your installed apps.
INSTALLED_APPS = (
# Other installed apps would go here
'comps',
)
django-comps inspects the contents of a template directory. Configure the path for the directory you will be storing your design/prototyping work:
COMPS_DIR = '/path/to/project/templates/comps'
You should include the comps urls in your root url patterns.
if 'comps' in settings.INSTALLED_APPS:
urlpatterns += patterns('', url(r'^', include('comps.urls')))
That should be enough to get you up and running with django-comps.
Protypes can be built in the COMPS_DIR and render within he context of a Django project, without the need for defined views.
- Take advantage of the templating engine
- No need to pre-configure urls and views during prototyping
- Onboard new designers to the wonders of Django
- /comps renders a list of files with .html extensions and directories located within the COMPS_DIR
- /comp/*.html renders the template