mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-01-05 04:26:39 +01:00
Compare commits
3 Commits
b653c28173
...
3232e2355f
Author | SHA1 | Date | |
---|---|---|---|
|
3232e2355f | ||
|
31825784ab | ||
|
f4f1c19ffb |
3
Pipfile
3
Pipfile
@ -21,9 +21,10 @@ requests = "*"
|
||||
six = "*"
|
||||
"urllib3" = "*"
|
||||
webencodings = "*"
|
||||
Django = "~=3.2"
|
||||
Django = "~=4.2"
|
||||
django-html_sanitizer = "*"
|
||||
inscriptis = "*"
|
||||
lxml = "*"
|
||||
|
||||
[dev-packages]
|
||||
python-lsp-server = {extras = ["pyflakes", "rope", "yapf"], version = "*"}
|
||||
|
@ -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__)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user