From d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Thu, 5 Mar 2015 17:10:06 +0530 Subject: changed to clean URL for convert notebook --- PythonTBC/settings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'PythonTBC') diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py index f7cab4e..a225d8a 100644 --- a/PythonTBC/settings.py +++ b/PythonTBC/settings.py @@ -56,12 +56,14 @@ 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 = '/home/hardik/Virtualenvs/PythonTBC/Python-Textbook-Companions' +#MEDIA_ROOT = join(PROJDIR, '../tbc/static/uploads') +#print PROJDIR # 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 = '/Python-Textbook-Companions/' # 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 +81,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' ) # List of finder classes that know how to find static files in @@ -120,7 +123,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'), + '/home/hardik/Virtualenvs/PythonTBC/Python-Textbook-Companions' ) INSTALLED_APPS = ( 'django.contrib.auth', -- cgit