Skip to content

Commit

Permalink
Update config links to 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
huangsam committed Oct 1, 2024
1 parent 241101c commit b8be41e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions chowist/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
https://docs.djangoproject.com/en/5.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
https://docs.djangoproject.com/en/5.1/ref/settings/
"""

import os
Expand All @@ -18,7 +18,7 @@


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv("DJANGO_SECRET", "dummy")
Expand Down Expand Up @@ -78,7 +78,7 @@


# Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"},
Expand All @@ -89,7 +89,7 @@


# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/
# https://docs.djangoproject.com/en/5.1/topics/i18n/

LANGUAGE_CODE = "en-us"

Expand All @@ -103,21 +103,21 @@


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/
# https://docs.djangoproject.com/en/5.1/howto/static-files/

STATIC_URL = "/static/"
STATICFILES_DIRS = [os.path.join(BASE_DIR, "staticfiles")]
STATIC_ROOT = os.path.join(BASE_DIR, "static")


# Authentication
# https://docs.djangoproject.com/en/4.1/topics/auth/default/
# https://docs.djangoproject.com/en/5.1/topics/auth/default/

LOGIN_REDIRECT_URL = "portal:home"


# Logging
# https://docs.djangoproject.com/en/4.1/topics/logging/
# https://docs.djangoproject.com/en/5.1/topics/logging/

LOGGING = {
"version": 1,
Expand Down Expand Up @@ -173,7 +173,7 @@


# Auto field
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"


Expand Down
2 changes: 1 addition & 1 deletion chowist/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
# https://docs.djangoproject.com/en/5.1/ref/settings/#databases

DATABASES = {
"default": {
Expand Down
6 changes: 3 additions & 3 deletions chowist/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from chowist.settings.base import * # noqa

# Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = []


# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
# https://docs.djangoproject.com/en/5.1/ref/settings/#databases

DATABASES = {
"default": {
Expand All @@ -20,5 +20,5 @@


# Email Backend
# https://docs.djangoproject.com/en/4.1/topics/email/#email-backends
# https://docs.djangoproject.com/en/5.1/topics/email/#email-backends
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
2 changes: 1 addition & 1 deletion chowist/settings/test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from chowist.settings.base import * # noqa

# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
# https://docs.djangoproject.com/en/5.1/ref/settings/#databases

DATABASES = {
"default": {
Expand Down

0 comments on commit b8be41e

Please sign in to comment.