2011-12-14 13:14:09 +00:00
|
|
|
from django.conf.urls.defaults import patterns, include, url
|
|
|
|
from django.contrib import admin
|
|
|
|
|
2009-05-17 11:34:55 +00:00
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2011-12-14 13:14:09 +00:00
|
|
|
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)),
|
2009-05-17 11:34:55 +00:00
|
|
|
)
|