debug True

This commit is contained in:
Parsa Nazer
2025-01-28 22:16:20 +03:30
parent 49f773a168
commit b6c282f6cc
+2 -2
View File
@@ -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}",