Browse Source

Prepping for Heroku.

master
Nick Sergeant 5 years ago
parent
commit
83770a80a9
2 changed files with 4 additions and 15 deletions
  1. +1
    -1
      settings.py
  2. +3
    -14
      wsgi.py

+ 1
- 1
settings.py View File

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


+ 3
- 14
wsgi.py View File

@@ -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)

Loading…
Cancel
Save