2👍
A project-wide assets.py
(as opposed to one in an app-directory) is no longer automatically read, you need to define such files through a ASSETS_MODULES
setting now.
If you are using staticfiles, pay attention to the fact that the staticfile finders will not be used unless Django is in debug mode (settings.DEBUG=True). In production mode, webassets will assume that collectstatic has been run first.
In settings.DEBUG=True mode, the reverse is true: ONLY the Django staticfile finders will be used. You could try opening a shell (./manage.py shell
) and see if the following finds your file:
from django.contrib.staticfiles import finders
finders.find('styles/libs/jquery-ui-timepicker-addon.css')
If it does, then so should webassets.
0👍
I had a similar error arise
'[BUNDLE_NAME]' not found (using staticfiles finders)
This wasn’t a very helpful message, so ended up looking into ./manage.py shell
and running
>>> from django.conf import settings
>>> from [ASSETS_FILE_PATH.assets] import [BUNDLE_NAME]
>>> [BUNDLE_NAME]
If this isn’t there it may give you another message.
- [Answered ]-How to define Django settings without default DB settings?
- [Answered ]-How to strip(not remove) specified tags from a html string using Python?
- [Answered ]-Django: unable to login with new users
- [Answered ]-Django summernote is not displaying