summaryrefslogtreecommitdiff
path: root/PythonTBC/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'PythonTBC/settings.py')
-rw-r--r--PythonTBC/settings.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py
index a225d8a..0f056d3 100644
--- a/PythonTBC/settings.py
+++ b/PythonTBC/settings.py
@@ -56,14 +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 = '/home/hardik/Virtualenvs/PythonTBC/Python-Textbook-Companions'
-#MEDIA_ROOT = join(PROJDIR, '../tbc/static/uploads')
-#print PROJDIR
+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 = '/Python-Textbook-Companions/'
+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
@@ -81,7 +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'),
- '/home/hardik/PythonTBC'
+ LOCAL_static_file_path,
)
# List of finder classes that know how to find static files in
@@ -124,7 +122,7 @@ TEMPLATE_DIRS = (
join(PROJDIR, '../tbc/templates'),
join(PROJDIR, '../tbc/static/uploads'),
join(PROJDIR, '../comments/templates'),
- '/home/hardik/Virtualenvs/PythonTBC/Python-Textbook-Companions'
+ LOCAL_template_dirs,
)
INSTALLED_APPS = (
'django.contrib.auth',