summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-12-10 01:49:17 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-12-24 17:39:02 +0100
commit45bfd735f1a9b20072dfcc2194883086b4eb7616 (patch)
tree9032ff24c98084bdf1380d24de63430210af3bff
parent6d6b46e92da74e94ddf07f91a094b0548b90a30c (diff)
downloadIshtar-45bfd735f1a9b20072dfcc2194883086b4eb7616.tar.bz2
Ishtar-45bfd735f1a9b20072dfcc2194883086b4eb7616.zip
Manage extra path in the URL of the application
-rw-r--r--ishtar/settings.py.example1
-rw-r--r--ishtar/urls.py6
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)),
)