turn on debug
This commit is contained in:
@@ -27,13 +27,13 @@ EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
|
|||||||
DEFAULT_FROM_EMAIL = os.getenv("SECRET_KEY")
|
DEFAULT_FROM_EMAIL = os.getenv("SECRET_KEY")
|
||||||
|
|
||||||
SECRET_KEY = os.getenv("SECRET_KEY")
|
SECRET_KEY = os.getenv("SECRET_KEY")
|
||||||
DEBUG = False
|
DEBUG = True
|
||||||
# in production lists of allowed hosts and allowed orgins will genrate
|
# in production lists of allowed hosts and allowed orgins will genrate
|
||||||
# in development every host and orgin will be true
|
# in development every host and orgin will be true
|
||||||
# in prodcution it will use the postgres info you enterd in .env.local
|
# in prodcution it will use the postgres info you enterd in .env.local
|
||||||
# in development it will use the sqlite
|
# in development it will use the sqlite
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
if not DEBUG:
|
if DEBUG:
|
||||||
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', DOMAIN, API_DOMAIN]
|
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', DOMAIN, API_DOMAIN]
|
||||||
CSRF_TRUSTED_ORIGINS = [
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
f"https://{DOMAIN}",
|
f"https://{DOMAIN}",
|
||||||
|
|||||||
Reference in New Issue
Block a user