nvbn / django-bower

Easy way to use bower with your django project
https://django-bower.readthedocs.io/
518 stars 75 forks source link

Work with requires_system_checks=() #84

Open KommuSoft opened 1 year ago

KommuSoft commented 1 year ago

Since Django-4.1, requires_system_checks should be a list or tuple listing the checks to perform. By setting it to an empty tuple, it will work on Django versions before and after 4.1, since the truthiness of an empty tuple is False.

See https://code.djangoproject.com/ticket/33896

paigeadelethompson commented 1 year ago

@nvbn any chance you could confirm/merge this soon? Thank you

mm-webx commented 1 year ago

Quick fix for everyone - use local version with this "fix":

  1. Uninstall django-bower
    pip uninstall django-bower
  2. Install bower to directory temp
    pip install django-bower --target temp/
  3. copy djangobower from temp directory to main directory of your app
  4. go to file djangobower/management/base.py and replace line 11 to requires_system_checks = ()
KommuSoft commented 6 months ago

@nvbn: is it possible to merge this, this is only a one-liner change.