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")
|
||||
|
||||
SECRET_KEY = os.getenv("SECRET_KEY")
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
# in production lists of allowed hosts and allowed orgins will genrate
|
||||
# in development every host and orgin will be true
|
||||
# in prodcution it will use the postgres info you enterd in .env.local
|
||||
# in development it will use the sqlite
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
if not DEBUG:
|
||||
if DEBUG:
|
||||
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', DOMAIN, API_DOMAIN]
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
f"https://{DOMAIN}",
|
||||
|
||||
Reference in New Issue
Block a user