URLconf

The URLconf (urls.py) maps URL roots to applications.

It has the following format:

from django.conf.urls.defaults import url, patterns

urlpatterns = patterns('', url(regex=r'^$', view='views.home', name='home', kwargs={'content_type: 'homepage'}), )

Whereby the keys can be ommited.


Tags: matching url

Edit this page
Wiki-logo