Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
settings: Align with Django template
- Configure settings according to environment variables: DEBUG and ALLOWED_HOSTS - Add STATIC_ROOT Internationalization: - Add "dqt" to INSTALLED_APPS and remove LOCALE_PATHS (use default discovery instead) - Remove LANGUAGES https://github.com/django/django/blob/stable/3.2.x/django/conf/global_settings.py - Add django.template.context_processors.i18n to MIDDLEWARE - Lowercase LANGUAGE_CODE Logging: - Abbreviate LOGGING and handle django.security.DisallowedHost - Add ignore_logger to Sentry configuration Security: - Only use CORS_ALLOW_ALL_ORIGINS in development - Add support for CSRF_COOKIE_SECURE, SESSION_COOKIE_SECURE, SECURE_* settings Forward-compatibility: - Add DEFAULT_AUTO_FIELD Cleanup: - Fix application_name for default "data" database in DATABASES - Use pathlib for BASE_DIR - Remove CACHE_BACKEND
- Loading branch information
1 parent
604271e
commit cbacaba
Showing
2 changed files
with
108 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters