Skip to content

Commit

Permalink
Add allauth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmullen committed Dec 14, 2023
1 parent e861fb1 commit c474434
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miqa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def before_binding(configuration: ComposedConfiguration) -> None:
'EXCEPTION_HANDLER'
] = 'miqa.core.rest.exceptions.custom_exception_handler'

configuration.MIDDLEWARE += [
'allauth.account.middleware.AccountMiddleware',
]


class DevelopmentConfiguration(MiqaMixin, DevelopmentBaseConfiguration):
HOMEPAGE_REDIRECT_URL = values.Value(environ=True, default='http://localhost:8081')
Expand Down

0 comments on commit c474434

Please sign in to comment.