Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.

Commit e8d57c3

Browse files
committed
Settings file ready
1 parent 557c866 commit e8d57c3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gettingstarted/settings.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
"""
1212

1313
import os
14-
import django_heroku
15-
1614

1715
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1816
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -27,7 +25,7 @@
2725
# SECURITY WARNING: don't run with debug turned on in production!
2826
DEBUG = True
2927

30-
ALLOWED_HOSTS = []
28+
ALLOWED_HOSTS = ['127.0.0.1']
3129

3230

3331
# Application definition
@@ -44,6 +42,7 @@
4442

4543
MIDDLEWARE = [
4644
"django.middleware.security.SecurityMiddleware",
45+
# Whitenoise goes here
4746
"django.contrib.sessions.middleware.SessionMiddleware",
4847
"django.middleware.common.CommonMiddleware",
4948
"django.middleware.csrf.CsrfViewMiddleware",
@@ -116,4 +115,4 @@
116115
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
117116
STATIC_URL = "/static/"
118117

119-
django_heroku.settings(locals())
118+
# Whitenoise static config goes here

0 commit comments

Comments
 (0)