diff options
author | hardythe1 | 2015-03-05 17:10:06 +0530 |
---|---|---|
committer | hardythe1 | 2015-03-05 17:10:06 +0530 |
commit | d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84 (patch) | |
tree | e16b0fde93fb089b84b80e69e7a026ff377f5330 /PythonTBC | |
parent | 5669ecb3f9a7d3c16fbd4bd00b7b448fbb275181 (diff) | |
download | Python-TBC-Interface-d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84.tar.gz Python-TBC-Interface-d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84.tar.bz2 Python-TBC-Interface-d6e7f2e1e0e5bc7bd5f222c4eac71dbaf4875c84.zip |
changed to clean URL for convert notebook
Diffstat (limited to 'PythonTBC')
-rw-r--r-- | PythonTBC/settings.py | 10 |
1 files changed, 7 insertions, 3 deletions
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', |