from .base import *  # noqa
import os

DEBUG = True
ALLOWED_HOSTS = [
    "*",
]

# CORS
# CORS_ALLOWED_ORIGINS = [
#     # "http://127.0.0.1:3000",
# ]


# CORS_ORIGIN_ALLOW_ALL = True


# CORS_ORIGIN_WHITELIST = ("http://localhost:3000",)

if DEBUG:
    MIDDLEWARE += [
        "debug_toolbar.middleware.DebugToolbarMiddleware",
    ]
    INSTALLED_APPS += [
        "debug_toolbar",
        "django_extensions",
    ]
    INTERNAL_IPS = [
        "127.0.0.1",
    ]

BASE_DOMAIN = ""


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/


MEDIA_URL = "/media/"
MEDIA_ROOT = os.path.join(BASE_DIR, "media")

# STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_URL = "/static/"


STATICFILES_DIRS = [BASE_DIR.joinpath("static")]
