Added ability to host website not at the root, eg. http://m.com/troggle/

This commit is contained in:
Martin Green
2011-05-02 02:37:33 +01:00
parent b439d40120
commit cdf54e0f9b
4 changed files with 14 additions and 5 deletions

View File

@@ -30,9 +30,10 @@ MEDIA_ROOT = '/home/expo/troggle/media/'
MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/'
URL_ROOT = "http://troggle.cavingexpedition.com/"
DIR_ROOT = ''#this should end in / if a value is given
TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/'
TINY_MCE_MEDIA_URL = URL_ROOT + 'tinymce_media/'
TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + 'tinymce_media/'
TEMPLATE_DIRS = (
"/home/expo/troggle/templates",