Skip to content

update django-allauth and dj-rest-auth

tom barrett requested to merge tombarrett/funkwhale:develop into develop

Hi, i would like to update allauth since its version is over three years old now. I am not too familiar with this project, so excuse me beforehand if I have done something wrong.

my endgoal is building the project with nix, as i think nixos would benefit greatly for having simple services.funkwhale.enable = true; capabilities.

when running with this with django-allauth v57 i get:

  File "/nix/store/jlgn3n0ig4pr56xp9yl1cc340jmd8cnr-funkwhale_api-1.3.4/lib/python3.11/site-packages/funkwhale_api/main.py", line 30, in main
    execute_from_command_line(sys.argv)
  File "/nix/store/6img1vdfxcv5fy7h0byzv44glv1zhryw-python3.11-django-3.2.23/lib/python3.11/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/nix/store/6img1vdfxcv5fy7h0byzv44glv1zhryw-python3.11-django-3.2.23/lib/python3.11/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/nix/store/6img1vdfxcv5fy7h0byzv44glv1zhryw-python3.11-django-3.2.23/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/nix/store/6img1vdfxcv5fy7h0byzv44glv1zhryw-python3.11-django-3.2.23/lib/python3.11/site-packages/django/apps/registry.py", line 122, in populate
    app_config.ready()
  File "/nix/store/qdgw1q7wp6f209bykxan2kd4p3nqxahl-python3.11-django-allauth-0.57.0/lib/python3.11/site-packages/allauth/account/apps.py", line 15, in ready
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: allauth.account.middleware.AccountMiddleware must be added to settings.MIDDLEWARE

hence why I would like to update the packages, thanks in advance

Please avoid merging the base branch into your feature branch. We are working with rebases and those merged tend to cause trouble. For further questions, join us at Matrix: https://matrix.to/#/#funkwhale-dev:matrix.org

If your contribution is fixing an issue by a small change, please consider a merge into stable by using it as target branch.

Related issue: #XXX

This Merge Request includes:

Merge request reports