diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-23 12:27:22 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-23 12:27:22 +0100 |
commit | fb7e82c30f77d5d57fdf9ab74f53cb0834bd7a13 (patch) | |
tree | befad204a8db5f43f5e48fea9940b065e2652d26 /example_project/settings.py | |
parent | 2741a10a356e4fd66441af005e142dbf5dbfc9bc (diff) | |
download | Ishtar-fb7e82c30f77d5d57fdf9ab74f53cb0834bd7a13.tar.bz2 Ishtar-fb7e82c30f77d5d57fdf9ab74f53cb0834bd7a13.zip |
Really fix ROOT_PATH
Diffstat (limited to 'example_project/settings.py')
-rw-r--r-- | example_project/settings.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index 3a001bf2b..ea6defcaf 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -17,10 +17,8 @@ CACHE_SMALLTIMEOUT = 120 CACHE_TIMEOUT = 3600 CACHE_BACKEND = 'memcached://127.0.0.1:11211/' -ROOT_PATH = (os.path.abspath(os.path.curdir) + os.path.sep).replace( - os.path.sep * 2, os.path.sep) -if ROOT_PATH == os.path.sep: - ROOT_PATH = "." + os.path.sep +ROOT_PATH = os.path.sep.join( + os.path.abspath(__file__).split(os.path.sep)[:-2]) STATIC_URL = '/static/' STATIC_ROOT = ROOT_PATH + 'static/' BASE_URL = "/" |