Fakultas Ilmu Komputer UI

Commit 23277d35 authored by Dwi Nanda Susanto's avatar Dwi Nanda Susanto
Browse files

Merge branch 'dwi_deploy_heroku_simple_homepage' into 'master'

Dwi deploy heroku simple homepage

See merge request !3
parents 30863094 16007485
web: gunicorn superlists.wsgi
\ No newline at end of file
# 1506722720-practice
Dwi Nanda Susanto - 1506722720 - Computer Science 2015 - PMPL A - Practice Repo
\ No newline at end of file
# Simple Home Page
> Dwi Nanda Susanto - 1506722720 - Computer Science 2015 - PMPL A - Practice Repo
The **deployed** simple home page can be accessed here :
[http://dwi-simplehomepage.herokuapp.com/](http://dwi-simplehomepage.herokuapp.com/)
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 = ['dwi-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