2009-05-17 11:34:55 +00:00
|
|
|
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')),
|
2009-12-24 11:41:38 +00:00
|
|
|
(r'^take/(?P<questionnaire_id>[0-9]+)/$', 'questionnaire.views.generate_run'),
|
2009-05-17 11:34:55 +00:00
|
|
|
(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'),
|
2009-05-17 11:34:55 +00:00
|
|
|
|
|
|
|
(r'^media/(.*)', 'django.views.static.serve',
|
|
|
|
{ 'document_root' : settings.MEDIA_ROOT }),
|
|
|
|
|
|
|
|
(r'^admin/(.*)', admin.site.root),
|
|
|
|
)
|