summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2011-05-02 02:37:33 +0100
committerMartin Green <martin.speleo@gmail.com>2011-05-02 02:37:33 +0100
commitcdf54e0f9bf2baf0df691a576c69fb906b808214 (patch)
treea568ad043ca7ed19d688e5bf8a671b1e4f927d52 /urls.py
parentb439d401207a81dbb422180f9d17e421b7eaadc4 (diff)
downloadtroggle-cdf54e0f9bf2baf0df691a576c69fb906b808214.tar.gz
troggle-cdf54e0f9bf2baf0df691a576c69fb906b808214.tar.bz2
troggle-cdf54e0f9bf2baf0df691a576c69fb906b808214.zip
Added ability to host website not at the root, eg. http://m.com/troggle/
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index 71312c0..c083c5b 100644
--- a/urls.py
+++ b/urls.py
@@ -15,7 +15,7 @@ admin.autodiscover()
# type url probably means it's used.
-urlpatterns = patterns('',
+actualurlpatterns = patterns('',
url(r'^$', views_other.frontpage, name="frontpage"),
url(r'^todo/$', views_other.todo, name="todo"),
@@ -128,3 +128,8 @@ urlpatterns = patterns('',
#url(r'^trip_report/?$',views_other.tripreport,name="trip_report")
)
+
+#Allow prefix to all urls
+urlpatterns = patterns ('',
+ ('^%s' % settings.DIR_ROOT, include(actualurlpatterns))
+)