mybuddy/babybuddy/settings/development.py

29 lines
826 B
Python
Raw Normal View History

from .base import *
# Quick-start development settings - unsuitable for production
2024-01-14 04:22:08 +00:00
# https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
SECRET_KEY = os.environ.get("SECRET_KEY") or "DEVELOPMENT!!"
DEBUG = bool(strtobool(os.environ.get("DEBUG") or "True"))
# Static files (CSS, JavaScript, Images)
2024-01-14 04:22:08 +00:00
# https://docs.djangoproject.com/en/5.0/howto/static-files/
#
2024-01-14 04:22:08 +00:00
# Comment out STORAGES["staticfiles"]["BACKEND"] and uncomment DEBUG = False to
# test with production static files.
# DEBUG = False
2024-01-14 04:22:08 +00:00
STORAGES["staticfiles"][
"BACKEND"
] = "django.contrib.staticfiles.storage.StaticFilesStorage"
# Django Rest Framework
2020-01-19 16:49:45 +00:00
# https://www.django-rest-framework.org/
2022-02-10 00:00:30 +00:00
REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"] = (
"rest_framework.renderers.JSONRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
)