mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
[svn] Try and sort out settings mess.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8087 by aaron @ 12/9/2008 4:48 AM
This commit is contained in:
parent
2aeabf14c1
commit
89ea3a5106
@ -9,6 +9,13 @@ SURVEX_DATA = ''
|
||||
CAVERN = 'cavern'
|
||||
EXPOWEB = '/home/mjg/expoweb'
|
||||
|
||||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||
# trailing slash if there is a path component (optional in other cases).
|
||||
# Examples: "http://media.lawrence.com", "http://example.com/media/"
|
||||
MEDIA_URL = 'http://framos.lawoftheland.co.uk/troggle/site_media/'
|
||||
|
||||
SVX_URL = 'http://framos.lawoftheland.co.uk/troggle/survex/'
|
||||
|
||||
PYTHON_PATH = '/home/mjg/expoweb/troggle/'
|
||||
|
||||
URL_ROOT = "/"
|
||||
|
10
settings.py
10
settings.py
@ -27,16 +27,6 @@ SITE_ID = 1
|
||||
# to load the internationalization machinery.
|
||||
USE_I18N = True
|
||||
|
||||
# Absolute path to the directory that holds media.
|
||||
# Example: "/home/media/media.lawrence.com/"
|
||||
# MOVED TO LOCALSETTINGS
|
||||
|
||||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||
# trailing slash if there is a path component (optional in other cases).
|
||||
# Examples: "http://media.lawrence.com", "http://example.com/media/"
|
||||
MEDIA_URL = 'http://127.0.0.1:8000/troggle/site_media/'
|
||||
|
||||
SVX_URL = 'http://127.0.0.1:8000/troggle/survex/'
|
||||
|
||||
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
|
||||
# trailing slash.
|
||||
|
2
urls.py
2
urls.py
@ -29,7 +29,7 @@ urlpatterns = patterns('',
|
||||
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
(r'^admin/(.*)', admin.site.root),
|
||||
|
||||
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
|
||||
(r'^troggle/site_media/(?P<path>.*)$', 'django.views.static.serve',
|
||||
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
|
||||
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user