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
commit9becad0d9ae8d2704a7c6eb3859f15ff6f985b7b (patch)
treea6531bf6fde88b061403e9d4ac4a9af7ef1507e9 /urls.py
parent4a3ccc728b1d8f0a48de98936858b7f16fc8abd2 (diff)
downloadtroggle-9becad0d9ae8d2704a7c6eb3859f15ff6f985b7b.tar.gz
troggle-9becad0d9ae8d2704a7c6eb3859f15ff6f985b7b.tar.bz2
troggle-9becad0d9ae8d2704a7c6eb3859f15ff6f985b7b.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))
+)