mybuddy/babybuddy/settings/development.py

33 lines
908 B
Python
Raw Normal View History

from .base import *
# Quick-start development settings - unsuitable for production
2020-01-19 16:49:45 +00:00
# https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
2017-10-22 20:00:29 +00:00
SECRET_KEY = 'CHANGE ME'
DEBUG = True
# Static files (CSS, JavaScript, Images)
2020-01-19 16:49:45 +00:00
# https://docs.djangoproject.com/en/3.0/howto/static-files/
#
# Comment out STATICFILES_STORAGE and uncomment DEBUG = False to test with
# production static files.
# DEBUG = False
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
# Django Rest Framework
2020-01-19 16:49:45 +00:00
# https://www.django-rest-framework.org/
REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = (
'rest_framework.renderers.JSONRenderer',
'rest_framework.renderers.BrowsableAPIRenderer',
)
2020-05-17 10:11:08 +00:00
# Session configuration
# Used by RollingSessionMiddleware to determine how often to reset the session.
# See https://docs.djangoproject.com/en/3.0/topics/http/sessions/
2020-05-17 10:11:08 +00:00
ROLLING_SESSION_REFRESH = 1