diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:23:25 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:23:25 +0100 |
commit | 89ea3a5106666218027d46b3b3a2ed74ef3b741f (patch) | |
tree | a4feaf255b77e566064ef00cb0f93ceac695cc68 | |
parent | 2aeabf14c1da5560f7e607a91fe7a7a2aa832aaa (diff) | |
download | troggle-89ea3a5106666218027d46b3b3a2ed74ef3b741f.tar.gz troggle-89ea3a5106666218027d46b3b3a2ed74ef3b741f.tar.bz2 troggle-89ea3a5106666218027d46b3b3a2ed74ef3b741f.zip |
[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
-rw-r--r-- | localsettingsserver.py | 7 | ||||
-rw-r--r-- | settings.py | 10 | ||||
-rw-r--r-- | urls.py | 2 |
3 files changed, 8 insertions, 11 deletions
diff --git a/localsettingsserver.py b/localsettingsserver.py index 22d55be..9030d5b 100644 --- a/localsettingsserver.py +++ b/localsettingsserver.py @@ -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 = "/" diff --git a/settings.py b/settings.py index 11e9073..b24f317 100644 --- a/settings.py +++ b/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. @@ -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}),
)
|