From dee54c3b41e8dd79dbe80355683461ff33910a5c Mon Sep 17 00:00:00 2001 From: Sli Date: Mon, 14 Oct 2024 18:24:21 +0200 Subject: [PATCH] Use manifest storage and correct webpack conversion on easymde form --- core/views/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/views/forms.py b/core/views/forms.py index 29de3ab4..58f609d1 100644 --- a/core/views/forms.py +++ b/core/views/forms.py @@ -29,6 +29,7 @@ from captcha.fields import CaptchaField from django import forms from django.conf import settings from django.contrib.auth.forms import AuthenticationForm, UserCreationForm +from django.contrib.staticfiles.storage import staticfiles_storage from django.core.exceptions import ValidationError from django.db import transaction from django.forms import ( @@ -38,7 +39,6 @@ from django.forms import ( Textarea, TextInput, ) -from django.templatetags.static import static from django.utils.translation import gettext from django.utils.translation import gettext_lazy as _ from phonenumber_field.widgets import RegionalPhoneNumberWidget @@ -72,8 +72,8 @@ class MarkdownInput(Textarea): context = super().get_context(name, value, attrs) context["statics"] = { - "js": static("webpack/easymde-index.js"), - "css": static("webpack/easymde-index.css"), + "js": staticfiles_storage.url("webpack/easymde-index.ts"), + "css": staticfiles_storage.url("webpack/easymde-index.css"), } return context