Prepping for Heroku.
parent
909112b4bc
commit
83770a80a9
|
@ -74,7 +74,7 @@ SITE_ID = 1
|
||||||
STATICFILES_DIRS = (os.path.join(BASE_PATH, 'media'),)
|
STATICFILES_DIRS = (os.path.join(BASE_PATH, 'media'),)
|
||||||
STATICFILES_FINDERS = ('django.contrib.staticfiles.finders.FileSystemFinder',
|
STATICFILES_FINDERS = ('django.contrib.staticfiles.finders.FileSystemFinder',
|
||||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder')
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder')
|
||||||
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
|
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
|
||||||
STATIC_ROOT = os.path.join(BASE_PATH, 'static')
|
STATIC_ROOT = os.path.join(BASE_PATH, 'static')
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
TASTYPIE_CANNED_ERROR = """There was an error with your request. The site
|
TASTYPIE_CANNED_ERROR = """There was an error with your request. The site
|
||||||
|
|
17
wsgi.py
17
wsgi.py
|
@ -1,16 +1,5 @@
|
||||||
"""
|
|
||||||
WSGI config for what project.
|
|
||||||
|
|
||||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
|
||||||
|
|
||||||
For more information on this file, see
|
|
||||||
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
|
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
from dj_static import Cling
|
from whitenoise.django import DjangoWhiteNoise
|
||||||
|
|
||||||
application = Cling(get_wsgi_application())
|
application = get_wsgi_application()
|
||||||
|
application = DjangoWhiteNoise(application)
|
||||||
|
|
Loading…
Reference in New Issue