Fakultas Ilmu Komputer UI

Commit 84267b69 authored by Dwi Nanda Susanto's avatar Dwi Nanda Susanto
Browse files

deploy

parent 30863094
web: gunicorn superlists.wsgi
\ No newline at end of file
python-3.6.8
\ No newline at end of file
......@@ -25,7 +25,7 @@ SECRET_KEY = 'hy8i*t3!(z=6ycjz@n80d*rd!*@i^4j!p9wasjdqd)1@+_gqv2'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['dwinanda-simplehomepage.herokuapp.com', '127.0.0.1']
# Application definition
......@@ -118,3 +118,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
......@@ -8,9 +8,12 @@ https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from whitenoise.django import DjangoWhiteNoise
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "superlists.settings")
application = get_wsgi_application()
application = DjangoWhiteNoise(application)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment