summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-10-15 15:57:47 +0000
committerluxagraf <sng@luxagraf.net>2012-10-15 15:57:47 +0000
commit3b356bf9170317181313e2aa7e622490f69d61fe (patch)
tree4e49590889481c7e13274cf32cd9eb31a47e3d8a /config
parentde05241d91a324f1eb7167433c3a06a4dcf01ba1 (diff)
changed settings for remote server
Diffstat (limited to 'config')
-rw-r--r--config/base_urls.py16
-rw-r--r--config/settings/settings.py2
2 files changed, 10 insertions, 8 deletions
diff --git a/config/base_urls.py b/config/base_urls.py
index b2cd642..201a621 100644
--- a/config/base_urls.py
+++ b/config/base_urls.py
@@ -24,14 +24,10 @@ feeds = {
'fblinks' : LatestLinks,
}
-if settings.DEVELOPMENT:
- urlpatterns = patterns('',
+urlpatterns = patterns('',
(r'^media/admin/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT+'/admin'}),
- (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
- (r'^images/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.IMAGES_ROOT}),
- )
-else:
- urlpatterns = patterns('')
+ (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
+)
# old page redirects
urlpatterns += patterns('',
@@ -70,3 +66,9 @@ urlpatterns += patterns('',
(r'^(?P<slug>[-\w]+)/$', 'pages.views.page'),
)
+
+urlpatterns += patterns('',
+ url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.STATIC_ROOT,}
+ ),
+)
diff --git a/config/settings/settings.py b/config/settings/settings.py
index 246b1be..850e232 100644
--- a/config/settings/settings.py
+++ b/config/settings/settings.py
@@ -56,7 +56,7 @@ MEDIA_ROOT = os.path.join(PROJ_ROOT, 'site/media')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
-MEDIA_URL = 'http://luxagraf.net/media/'
+MEDIA_URL = 'http://live.luxagraf.net/media/'
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files