Skip to content

Commit

Permalink
refactor: Temporarily disable DEBUG and ALLOWED_HOSTS settings for ea…
Browse files Browse the repository at this point in the history
…sier local debugging
  • Loading branch information
AhmedNassar7 committed Dec 21, 2024
1 parent d5e5c5b commit 5d9738b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions egypt_metro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from dotenv import load_dotenv # Load environment variables from .env file
from datetime import timedelta # Time delta for JWT tokens
from corsheaders.defaults import default_headers # Default headers for CORS
from decouple import config
# from decouple import config
from datetime import datetime

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand All @@ -35,8 +35,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
ALLOWED_HOSTS = config("ALLOWED_HOSTS", default="").split(",")
# DEBUG = os.getenv("DEBUG", "False") == "True" # Default to False
# ALLOWED_HOSTS = config("ALLOWED_HOSTS", default="").split(",")
DEBUG = True
ALLOWED_HOSTS = ["*"] # Temporary for debugging purposes

# Set API start time to the application's boot time
API_START_TIME = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")
Expand Down

0 comments on commit 5d9738b

Please sign in to comment.