We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d76ac7 commit 187c8dfCopy full SHA for 187c8df
django_unicorn/templatetags/unicorn.py
@@ -6,16 +6,16 @@
6
import shortuuid
7
8
from django_unicorn.call_method_parser import InvalidKwarg, parse_kwarg
9
-from django_unicorn.errors import UnicornViewError
10
-
11
-from ..settings import get_setting
12
13
14
register = template.Library()
15
16
17
@register.inclusion_tag("unicorn/scripts.html")
18
def unicorn_scripts():
+ # Import here to prevent th potential of this from loading before Django settings
+ from django_unicorn.settings import get_setting
+
19
return {"MINIFIED": get_setting("MINIFIED", not settings.DEBUG)}
20
21
0 commit comments