fef-questionnaire/example/urls.py

16 lines
631 B
Python
Raw Normal View History

from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'q/', include('questionnaire.urls')),
url(r'^take/(?P<questionnaire_id>[0-9]+)/$', 'questionnaire.views.generate_run'),
url(r'^$', 'page.views.page', {'page' : 'index'}),
url(r'^(?P<page>.*)\.html$', 'page.views.page'),
url(r'^(?P<lang>..)/(?P<page>.*)\.html$', 'page.views.langpage'),
url(r'^setlang/$', 'questionnaire.views.set_language'),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
)