summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-12-23 06:35:10 +0100
committereliott <eliott@cactuswax.net>2007-12-23 06:35:10 +0100
commit6226b02f8be136a81ceff2b79b8c4280cfc5e3fb (patch)
treeb7f258575408df3253cc2b70b1f5df77de42eea8
parent131e70b24706680aa14117d5d1e29332a1565a06 (diff)
downloadarchweb-6226b02f8be136a81ceff2b79b8c4280cfc5e3fb.tar.gz
archweb-6226b02f8be136a81ceff2b79b8c4280cfc5e3fb.tar.xz
removed need to specify deploypath manually
-rw-r--r--local_settings.py.example3
-rw-r--r--settings.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/local_settings.py.example b/local_settings.py.example
index e202443..7016341 100644
--- a/local_settings.py.example
+++ b/local_settings.py.example
@@ -25,9 +25,6 @@ MEDIA_ROOT = '/var/www/archlinux/htdocs/img/devs/'
### web url for serving image files
MEDIA_URL = 'http://www.archlinux.org/img/devs/'
-# do not put a / at the end
-DEPLOY_PATH = '/var/www/archlinux/archlinux'
-
# Make this unique, and don't share it with anybody.
SECRET_KEY = '00000000000000000000000000000000000000000000000'
diff --git a/settings.py b/settings.py
index f209f94..75ea18a 100644
--- a/settings.py
+++ b/settings.py
@@ -1,3 +1,4 @@
+import os
# Django settings for archweb_dev project.
## Import local settings
@@ -17,6 +18,7 @@ if ENABLE_CACHE == True:
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
# Full path to the data directory
+DEPLOY_PATH = os.path.dirname(os.path.realpath(__file__))
DATA_DIR = '%s/data' % DEPLOY_PATH
# Local time zone for this installation. All choices can be found here: