Skip to content

Commit

Permalink
Django 5.0!
Browse files Browse the repository at this point in the history
Also updating all the Python and JS things as well.

https://adamj.eu/tech/2023/12/07/django-fix-urlfield-assume-scheme-warnings/
  • Loading branch information
trey committed Dec 10, 2023
1 parent 3de98c3 commit 2af97e3
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 577 deletions.
6 changes: 6 additions & 0 deletions config/settings.py-tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
from django.core.management.utils import get_random_secret_key
from pathlib import Path
from environs import Env
from warnings import filterwarnings

env = Env()
# Read .env into os.environ
Expand Down Expand Up @@ -179,3 +180,8 @@ if DEBUG:
LOGIN_REDIRECT_URL = "/"
LOGOUT_REDIRECT_URL = "/"
ADMIN_URL = env("ADMIN_URL", default="admin/")

filterwarnings(
"ignore", "The FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated."
)
FORMS_URLFIELD_ASSUME_HTTPS = True
Loading

0 comments on commit 2af97e3

Please sign in to comment.