summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index f55309a..f05f758 100644
--- a/urls.py
+++ b/urls.py
@@ -4,8 +4,15 @@ from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
+from settings import URL_ROOT
+
+if URL_ROOT.startswith('/'):
+ URL_BASE = r'^%s/exam/'%URL_ROOT[1:]
+else:
+ URL_BASE = r'^exam/'
+
urlpatterns = patterns('',
- url(r'^exam/', include('exam.urls')),
+ url(URL_BASE, include('exam.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),