Fucking hell.

master
Nick Sergeant 2014-10-20 22:39:16 -04:00
parent b779948d07
commit a70a3dad79
2 changed files with 3 additions and 11 deletions

View File

@ -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',

View File

@ -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')}), )
)