Closed sergei-maertens closed 5 years ago
According to https://docs.djangoproject.com/en/2.2/topics/forms/media/#paths-in-asset-definitions you don't need the static
call yourself, but Django will perform it if django.contrib.staticfiles
is installed. So removing the call should fix this.
I'll verify this theory and contribute a PR if it works.
Description
Same as #5, literally, but with debug output.
Running
collectstatic
crashes because ofstatic()
call in the admin mixin. The mixin is imported in theadmin.py
modules, which are autodiscovered during django startup time.What I Did
Setting:
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"