1
0
mirror of https://gitlab.com/brutaldon/brutaldon synced 2025-01-05 04:26:39 +01:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Dzmitry Kushnarou
3232e2355f Merge branch 'bugfix/cant-switch-accounts-after-old-login' into 'main'
Fix bug: can’t switch accounts after using old login mode

See merge request brutaldon/brutaldon!13
2024-10-25 19:25:56 +00:00
Jason McBrayer
31825784ab Support and prefer Django 4.2.x.
Backwards compatibility for 3.2 LTS is provided for now, but you'll
have to change the pipfile if you insist on it.

Signed-off-by: Dorian Wood <dorian@threeraccoons.com>
2024-10-25 15:09:44 -04:00
DJ Sundog
f4f1c19ffb Merge branch 'fix/support-gts' into 'main'
pin bleach dep to 4.1, disable mastodon version checks

See merge request brutaldon/brutaldon!11
2024-10-25 15:05:18 -04:00
2 changed files with 10 additions and 1 deletions

View File

@ -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 = "*"}

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__)))