1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05:00

changing django version to 4.2 from 3.2

This commit is contained in:
Dorian Wood 2024-10-23 16:42:14 -04:00
parent 41588c42ef
commit 18526befb0
2 changed files with 9 additions and 1 deletions

View File

@ -21,7 +21,7 @@ requests = "*"
six = "*"
"urllib3" = "*"
webencodings = "*"
Django = "~=3.2"
Django = "~=4.2"
django-html_sanitizer = "*"
inscriptis = "*"
lxml = "*"

View File

@ -12,6 +12,14 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
import os
# Work around issue in sanitizer
import django
try:
from django.utils.encoding import smart_text
except:
from django.utils.encoding import smart_str
django.utils.encoding.smart_text = smart_str
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))