diff --git a/dandiapi/settings.py b/dandiapi/settings.py index d0b57860e..d62155937 100644 --- a/dandiapi/settings.py +++ b/dandiapi/settings.py @@ -39,6 +39,13 @@ def mutate_configuration(configuration: type[ComposedConfiguration]): 'dandiapi.zarr.apps.ZarrConfig', ] + configuration.INSTALLED_APPS + # TODO: remove this when the upstream fix is merged + # (https://github.com/girder/django-composed-configuration/pull/189) + if 'allauth.account.middleware.AccountMiddleware' not in configuration.MIDDLEWARE: + configuration.MIDDLEWARE += [ + 'allauth.account.middleware.AccountMiddleware', + ] + # Install guardian configuration.INSTALLED_APPS += ['guardian']