forked from expo/troggle
Added ability to host website not at the root, eg. http://m.com/troggle/
This commit is contained in:
7
urls.py
7
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))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user