Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
Put ALLOWED_HOSTS inside .env virtual environment variables.
  • Loading branch information
Animesh-Ghosh committed Jul 30, 2019
1 parent bbd2d79 commit 9b163b7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tutorialdb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

DEBUG = True

ALLOWED_HOSTS = ['127.0.0.1','192.168.42.2','tutorialdb.pythonanywhere.com']

ALLOWED_HOSTS = ['127.0.0.1'] + list(os.environ['ALLOWED_HOSTS'])

# Application definition

Expand Down Expand Up @@ -70,7 +69,6 @@

WSGI_APPLICATION = 'tutorialdb.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases

Expand All @@ -81,7 +79,6 @@
}
}


# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators

Expand All @@ -100,7 +97,6 @@
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/

Expand All @@ -114,6 +110,5 @@

USE_TZ = True


STATIC_URL = '/static/'
STATICFILES_DIRS = ( os.path.join('static'), )

0 comments on commit 9b163b7

Please sign in to comment.