Fucking hell.
parent
b779948d07
commit
a70a3dad79
|
@ -85,13 +85,6 @@ USE_I18N = True
|
||||||
USE_L10N = True
|
USE_L10N = True
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
if 'USE_SSL' in os.environ:
|
|
||||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
||||||
STATIC_ROOT = 'staticfiles'
|
|
||||||
STATICFILES_DIRS = (
|
|
||||||
os.path.join(BASE_DIR, 'media'),
|
|
||||||
)
|
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
'gunicorn',
|
'gunicorn',
|
||||||
'raven.contrib.django.raven_compat',
|
'raven.contrib.django.raven_compat',
|
||||||
|
|
5
urls.py
5
urls.py
|
@ -68,7 +68,6 @@ urlpatterns = patterns('',
|
||||||
url(r'^', include('snipts.urls')),
|
url(r'^', include('snipts.urls')),
|
||||||
)
|
)
|
||||||
|
|
||||||
if 'USE_SSL' not in os.environ:
|
urlpatterns += patterns('',
|
||||||
urlpatterns += patterns('',
|
|
||||||
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue