diff options
author | Hardik Ghaghada | 2015-03-13 15:28:12 +0530 |
---|---|---|
committer | Hardik Ghaghada | 2015-03-13 15:28:12 +0530 |
commit | 8fc4844775edd500fd11508043d284048e1add96 (patch) | |
tree | 68aa99bd49bd0923c88fed10f263338ed33baff7 /PythonTBC | |
parent | cb03fbb819a28ef464c9d47b7f01d59b3119571d (diff) | |
parent | 707af515ef317adc74d6ad9f0c912eb598c5ff9f (diff) | |
download | Python-TBC-Interface-8fc4844775edd500fd11508043d284048e1add96.tar.gz Python-TBC-Interface-8fc4844775edd500fd11508043d284048e1add96.tar.bz2 Python-TBC-Interface-8fc4844775edd500fd11508043d284048e1add96.zip |
Merge pull request #15 from FOSSEE/CleanURL
Clean url
Diffstat (limited to 'PythonTBC')
-rw-r--r-- | PythonTBC/settings.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py index f7cab4e..0f056d3 100644 --- a/PythonTBC/settings.py +++ b/PythonTBC/settings.py @@ -56,12 +56,12 @@ USE_TZ = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/var/www/example.com/media/" -MEDIA_ROOT = join(PROJDIR, '../tbc/static/uploads') +MEDIA_ROOT = LOCAL_MEDIA_ROOT # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://example.com/media/", "http://media.example.com/" -MEDIA_URL = '/tbc/static/uploads/' +MEDIA_URL = LOCAL_MEDIA_URL # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files @@ -79,6 +79,7 @@ STATICFILES_DIRS = ( # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. join(PROJDIR, '../tbc/static'), + LOCAL_static_file_path, ) # List of finder classes that know how to find static files in @@ -120,7 +121,8 @@ TEMPLATE_DIRS = ( # Don't forget to use absolute paths, not relative paths. join(PROJDIR, '../tbc/templates'), join(PROJDIR, '../tbc/static/uploads'), - join(PROJDIR, '../comments/templates') + join(PROJDIR, '../comments/templates'), + LOCAL_template_dirs, ) INSTALLED_APPS = ( 'django.contrib.auth', |