diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-23 12:22:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-23 12:22:23 +0100 |
commit | 2741a10a356e4fd66441af005e142dbf5dbfc9bc (patch) | |
tree | f2e462aed344f473bcc2876a8159dc9bff81a518 /example_project | |
parent | 36fcab0e72b1eb5f04062f4ba3021c4264b8f8a8 (diff) | |
download | Ishtar-2741a10a356e4fd66441af005e142dbf5dbfc9bc.tar.bz2 Ishtar-2741a10a356e4fd66441af005e142dbf5dbfc9bc.zip |
Fix default ROOT_PATH
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/settings.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index 6a0bf4079..3a001bf2b 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -17,7 +17,10 @@ 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 +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 STATIC_URL = '/static/' STATIC_ROOT = ROOT_PATH + 'static/' BASE_URL = "/" |