11👍
Like templates, static files are searched for in two locations:
- under the directories listed in
STATIC_DIRS
- in static directories in the apps themselves.
In this case, it looks like this file is provided both by django/contrib/admin/static
, and /static/
.
9👍
Django respects the order of your apps in settings.py
INSTALLED_APPS
when running collectstatic
.
If you have two installed apps that write the same static files (e.g. django.contrib.admin
and grappelli
) then Django collectstatic
will write the static files for the app appearing first in the list. When it hits the second app it will ignore its static files and output the warning you are seeing.
So you need to find out which two INSTALLED_APPS
are trying to write the same static files, and decide which one you want to use the static files of. If you make sure that app appears first in your INSTALLED_APPS
list then you can safely ignore the warnings generated from the second app.
- Show images in Django templates
- Django does django have an automatic timestamp create/update field like cakephp?
- How to send success message if we use django generic views
5👍
check this: https://github.com/django-compressor/django-compressor/issues/720
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
#'django.contrib.staticfiles.finders.AppDirectoriesFinder', #causes verbose duplicate notifications in django 1.9
)
- How to use select_related with GenericForeignKey in django?
- Refresh <div> element generated by a django template