Browse Source

Fucking hell.

master
Nick Sergeant 7 years ago
parent
commit
a70a3dad79
2 changed files with 3 additions and 11 deletions
  1. +0
    -7
      settings.py
  2. +3
    -4
      urls.py

+ 0
- 7
settings.py View File

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


+ 3
- 4
urls.py View File

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

Loading…
Cancel
Save