mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-26 01:01:53 +00:00
Added ability to host website not at the root, eg. http://m.com/troggle/
This commit is contained in:
parent
b439d40120
commit
cdf54e0f9b
@ -30,9 +30,10 @@ MEDIA_ROOT = '/home/expo/troggle/media/'
|
|||||||
MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/'
|
MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/'
|
||||||
|
|
||||||
URL_ROOT = "http://troggle.cavingexpedition.com/"
|
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_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 = (
|
TEMPLATE_DIRS = (
|
||||||
"/home/expo/troggle/templates",
|
"/home/expo/troggle/templates",
|
||||||
|
@ -30,14 +30,15 @@ PHOTOS = '/home/goatchurch/expoweb/photos'
|
|||||||
FILES = "/home/goatchurch/tunnel/cucc/surveys"
|
FILES = "/home/goatchurch/tunnel/cucc/surveys"
|
||||||
|
|
||||||
|
|
||||||
MEDIA_URL = '/site_media/'
|
MEDIA_URL = URL_ROOT + DIR_ROOT + '/site_media/'
|
||||||
#URL_ROOT = '/troggle/'
|
#URL_ROOT = '/troggle/'
|
||||||
MEDIA_ROOT = '/home/goatchurch/expoweb/troggle/media/'
|
MEDIA_ROOT = '/home/goatchurch/expoweb/troggle/media/'
|
||||||
|
|
||||||
URL_ROOT = 'http://127.0.0.1:8000'
|
URL_ROOT = 'http://127.0.0.1:8000'
|
||||||
|
DIR_ROOT = ''#this should end in / if a value is given
|
||||||
|
|
||||||
TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/'
|
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 = (
|
TEMPLATE_DIRS = (
|
||||||
"/home/goatchurch/expoweb/troggle/templates",
|
"/home/goatchurch/expoweb/troggle/templates",
|
||||||
|
@ -18,14 +18,16 @@ LOGFILE = EXPOWEB+'troggle\\parsing_log.txt'
|
|||||||
PHOTOS = 'C:\\Expo\\expoweb\\photos'
|
PHOTOS = 'C:\\Expo\\expoweb\\photos'
|
||||||
|
|
||||||
URL_ROOT = 'http://127.0.0.1:8000'
|
URL_ROOT = 'http://127.0.0.1:8000'
|
||||||
|
DIR_ROOT = ''#this should end in / if a value is given
|
||||||
PUBLIC_SITE = False
|
PUBLIC_SITE = False
|
||||||
|
|
||||||
TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/'
|
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/'
|
||||||
|
|
||||||
PYTHON_PATH = 'C:\\expoweb\\troggle\\'
|
PYTHON_PATH = 'C:\\expoweb\\troggle\\'
|
||||||
|
|
||||||
MEDIA_ROOT = 'C:/Expo/expoweb/troggle/media/'
|
MEDIA_ROOT = 'C:/Expo/expoweb/troggle/media/'
|
||||||
|
MEDIA_URL = URL_ROOT + DIR_ROOT + 'site_media/'
|
||||||
|
|
||||||
#FILES = "http://framos.lawoftheland.co.uk/troggle/survey_files/"
|
#FILES = "http://framos.lawoftheland.co.uk/troggle/survey_files/"
|
||||||
|
|
||||||
|
7
urls.py
7
urls.py
@ -15,7 +15,7 @@ admin.autodiscover()
|
|||||||
|
|
||||||
# type url probably means it's used.
|
# type url probably means it's used.
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
actualurlpatterns = patterns('',
|
||||||
|
|
||||||
url(r'^$', views_other.frontpage, name="frontpage"),
|
url(r'^$', views_other.frontpage, name="frontpage"),
|
||||||
url(r'^todo/$', views_other.todo, name="todo"),
|
url(r'^todo/$', views_other.todo, name="todo"),
|
||||||
@ -128,3 +128,8 @@ urlpatterns = patterns('',
|
|||||||
|
|
||||||
#url(r'^trip_report/?$',views_other.tripreport,name="trip_report")
|
#url(r'^trip_report/?$',views_other.tripreport,name="trip_report")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#Allow prefix to all urls
|
||||||
|
urlpatterns = patterns ('',
|
||||||
|
('^%s' % settings.DIR_ROOT, include(actualurlpatterns))
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user