diff options
-rw-r--r-- | ishtar/settings.py.example | 1 | ||||
-rw-r--r-- | ishtar/urls.py | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ishtar/settings.py.example b/ishtar/settings.py.example index 1c5f3e7f2..12888aa32 100644 --- a/ishtar/settings.py.example +++ b/ishtar/settings.py.example @@ -4,6 +4,7 @@ SRID = 27572 ROOT_PATH = "/var/local/webapp/ishtar/ishtar/" +URL_PATH = "" DEBUG = True TEMPLATE_DEBUG = DEBUG diff --git a/ishtar/urls.py b/ishtar/urls.py index 1ca2431bb..4d921b598 100644 --- a/ishtar/urls.py +++ b/ishtar/urls.py @@ -3,6 +3,10 @@ from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() +from settings import URL_PATH + +BASE_URL = r'^' + URL_PATH + urlpatterns = patterns('', # Example: # (r'^ishtar/', include('ishtar.foo.urls')), @@ -10,5 +14,5 @@ urlpatterns = patterns('', # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), - (r'^admin/', include(admin.site.urls)), + (BASE_URL + r'admin/', include(admin.site.urls)), ) |