Getting Started

Below are the basic steps need to get django-comps integrated into your Django project.

Configure Settings

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'

Configure Urls

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.

Usage

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

Plumbing

  • /comps renders a list of files with .html extensions and directories located within the COMPS_DIR
  • /comp/*.html renders the template
Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.