fef-questionnaire/example/urls.py

20 lines
654 B
Python
Raw Normal View History

from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
(r'q/', include('questionnaire.urls')),
(r'^take/(?P<questionnaire_id>[0-9]+)/$', 'questionnaire.views.generate_run'),
(r'^$', 'page.views.page', {'page' : 'index'}),
(r'^(?P<page>.*)\.html$', 'page.views.page'),
(r'^(?P<lang>..)/(?P<page>.*)\.html$', 'page.views.langpage'),
2009-06-15 17:05:59 +00:00
(r'^setlang/$', 'questionnaire.views.set_language'),
(r'^media/(.*)', 'django.views.static.serve',
{ 'document_root' : settings.MEDIA_ROOT }),
(r'^admin/(.*)', admin.site.root),
)