summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/settings.py b/settings.py
index d8c6204..13f9d24 100644
--- a/settings.py
+++ b/settings.py
@@ -2,7 +2,9 @@
ROOT_PATH = '/var/local/django/chimere/'
-BASE_URL = "http://www.peacefrogs.net/chimere/"
+SERVER_URL = "http://www.peacefrogs.net/"
+EXTRA_URL = 'chimere/'
+BASE_URL = SERVER_URL + EXTRA_URL
EMAIL_HOST = 'localhost'
# chimere specific
@@ -53,12 +55,12 @@ MEDIA_ROOT = ROOT_PATH + 'static/'
# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com"
-MEDIA_URL = '/chimere/static/'
+MEDIA_URL = '/' + EXTRA_URL + 'static/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/chimere/media/'
+ADMIN_MEDIA_PREFIX = '/' + EXTRA_URL + 'media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'achanger_!ToChange!'