diff --git a/egypt_metro/settings.py b/egypt_metro/settings.py index 083eaf9..9ce4d52 100644 --- a/egypt_metro/settings.py +++ b/egypt_metro/settings.py @@ -31,9 +31,10 @@ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.getenv("SECRET_KEY") # Secret key for Django -DEBUG = os.getenv("DEBUG", "False") == "True" # Default to False +# DEBUG = os.getenv("DEBUG", "False") == "True" # Default to False # ALLOWED_HOSTS = config("ALLOWED_HOSTS", default="").split(",") -ALLOWED_HOSTS = ['backend-54v5.onrender.com', '127.0.0.1', 'localhost'] +DEBUG = True +ALLOWED_HOSTS = ['*'] BASE_URL = os.getenv("BASE_URL") # Base URL for the project JWT_SECRET = os.getenv("JWT_SECRET") # Secret key for JWT tokens CSRF_TRUSTED_ORIGINS = ["https://backend-54v5.onrender.com"] @@ -359,10 +360,7 @@ STATIC_URL = "/static/" # URL for static files -if os.getenv("RENDER"): - STATIC_ROOT = "/opt/render/project/src/staticfiles/" -else: - STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # Folder where static files will be collected +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # Folder where static files will be collected STATICFILES_STORAGE = ( "whitenoise.storage.CompressedManifestStaticFilesStorage" # Static files storage