From b6987bee694a4862f4b22cbfa469fe9d2010e9ee Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 21 Nov 2024 07:34:09 +0100 Subject: [PATCH] fix: Refactors static file import path Updates the import path for the static method to reflect recent changes in Django's module structure, ensuring compatibility with newer versions. This change helps prevent deprecation issues under up-to-date Django setups. --- mood/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mood/views.py b/mood/views.py index d72e26f..1703f69 100644 --- a/mood/views.py +++ b/mood/views.py @@ -14,7 +14,7 @@ from django.http import HttpResponseRedirect, HttpResponse from django.utils import timezone from django.views.decorators.clickjacking import xframe_options_sameorigin from django.utils.decorators import method_decorator -from django.contrib.staticfiles.templatetags.staticfiles import static +from django.templatetags.static import static from .models import Status, Activity, Mood, StatusMedia, StatusActivity from .forms import StatusForm