Fucking hell.

master
Nick Sergeant 2014-10-20 22:39:16 -04:00
commit a70a3dad79
2 arquivos alterados com 3 adições e 11 exclusões

Ver arquivo

@ -85,13 +85,6 @@ USE_I18N = True
USE_L10N = 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 = (
'gunicorn',
'raven.contrib.django.raven_compat',

Ver arquivo

@ -68,7 +68,6 @@ urlpatterns = patterns('',
url(r'^', include('snipts.urls')),
)
if 'USE_SSL' not in os.environ:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
)
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
)