From 5c39c39e612d9c68054f4e79fe4c65d179e5b1f4 Mon Sep 17 00:00:00 2001 From: Animesh-Ghosh <34956994+Animesh-Ghosh@users.noreply.github.com> Date: Tue, 30 Jul 2019 16:19:58 +0530 Subject: [PATCH] Revert "Update settings.py" This reverts commit 9b163b737b11b82c168a6bf0e62cbb45d05d213d. --- tutorialdb/settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tutorialdb/settings.py b/tutorialdb/settings.py index 04e1b35..47ec1ac 100644 --- a/tutorialdb/settings.py +++ b/tutorialdb/settings.py @@ -9,7 +9,8 @@ DEBUG = True -ALLOWED_HOSTS = ['127.0.0.1'] + list(os.environ['ALLOWED_HOSTS']) +ALLOWED_HOSTS = ['127.0.0.1','192.168.42.2','tutorialdb.pythonanywhere.com'] + # Application definition @@ -69,6 +70,7 @@ WSGI_APPLICATION = 'tutorialdb.wsgi.application' + # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases @@ -79,6 +81,7 @@ } } + # Password validation # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators @@ -97,6 +100,7 @@ }, ] + # Internationalization # https://docs.djangoproject.com/en/2.2/topics/i18n/ @@ -110,5 +114,6 @@ USE_TZ = True + STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join('static'), ) \ No newline at end of file