Hello, world is now working

This commit is contained in:
2022-06-27 18:34:19 +03:00
parent d1a62ea500
commit 39e9a0a1ab
10 changed files with 35 additions and 6 deletions
+5 -5
View File
@@ -19,14 +19,14 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
import os
SECRET_KEY = os.environ['SECRET_KEY']
import environ
env = environ.Env()
environ.Env.read_env()
SECRET_KEY = env('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = []
ALLOWED_HOSTS = [env('HOST_1')]
# Application definition