1
0
Fork 0

Prepping for Heroku.

master
Nick Sergeant 2016-11-01 13:57:12 -04:00
Ursprung 909112b4bc
Commit 83770a80a9
2 geänderte Dateien mit 4 neuen und 15 gelöschten Zeilen

Datei anzeigen

@ -74,7 +74,7 @@ SITE_ID = 1
STATICFILES_DIRS = (os.path.join(BASE_PATH, 'media'),)
STATICFILES_FINDERS = ('django.contrib.staticfiles.finders.FileSystemFinder',
'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_URL = '/static/'
TASTYPIE_CANNED_ERROR = """There was an error with your request. The site

17
wsgi.py
Datei anzeigen

@ -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 dj_static import Cling
from whitenoise.django import DjangoWhiteNoise
application = Cling(get_wsgi_application())
application = get_wsgi_application()
application = DjangoWhiteNoise(application)