* dev: update settings file structure and added extra settings for CORS * dev: remove WEB_URL variable and add celery integration for sentry * dev: aws and minio settings * dev: add cors origins to env * dev: update settings
39 lines
820 B
Python
39 lines
820 B
Python
"""Development settings"""
|
|
from .common import * # noqa
|
|
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = [
|
|
"*",
|
|
]
|
|
|
|
# Debug Toolbar settings
|
|
INSTALLED_APPS += ("debug_toolbar",)
|
|
MIDDLEWARE += ("debug_toolbar.middleware.DebugToolbarMiddleware",)
|
|
|
|
DEBUG_TOOLBAR_PATCH_SETTINGS = False
|
|
|
|
# Only show emails in console don't send it to smtp
|
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
|
|
|
CACHES = {
|
|
"default": {
|
|
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
|
|
}
|
|
}
|
|
|
|
INTERNAL_IPS = ("127.0.0.1",)
|
|
|
|
CORS_ORIGIN_ALLOW_ALL = True
|
|
|
|
MEDIA_URL = "/uploads/"
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, "uploads")
|
|
|
|
# For local settings
|
|
CORS_ALLOW_ALL_ORIGINS = True
|
|
CORS_ALLOWED_ORIGINS = [
|
|
"http://localhost:3000",
|
|
"http://127.0.0.1:3000",
|
|
"http://localhost:4000",
|
|
"http://127.0.0.1:4000",
|
|
]
|