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