Files
cyberyan_linkedin_search/backend/config/settings/dev.py
T

23 lines
656 B
Python
Raw Normal View History

"""Local development settings: verbose, permissive, never for production."""
from .base import * # noqa: F403
from .base import INSTALLED_APPS, REST_FRAMEWORK, env
DEBUG = True
INSTALLED_APPS += ["django_extensions"]
# Browsable API is handy while developing against the endpoints by hand.
REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"] = (
"rest_framework.renderers.JSONRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
)
ALLOWED_HOSTS = ["*"]
CORS_ALLOW_ALL_ORIGINS = env.bool("CORS_ALLOW_ALL_ORIGINS", default=True)
# Never enforce HTTPS locally.
SECURE_SSL_REDIRECT = False
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False