mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
changing django version to 4.2 from 3.2
This commit is contained in:
2
Pipfile
2
Pipfile
@@ -21,7 +21,7 @@ requests = "*"
|
|||||||
six = "*"
|
six = "*"
|
||||||
"urllib3" = "*"
|
"urllib3" = "*"
|
||||||
webencodings = "*"
|
webencodings = "*"
|
||||||
Django = "~=3.2"
|
Django = "~=4.2"
|
||||||
django-html_sanitizer = "*"
|
django-html_sanitizer = "*"
|
||||||
inscriptis = "*"
|
inscriptis = "*"
|
||||||
lxml = "*"
|
lxml = "*"
|
||||||
|
@@ -12,6 +12,14 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
|
|||||||
|
|
||||||
import os
|
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, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user