Skip to content

Move urls to extra urls.py

Marvin Wilke requested to merge feature/add-extra-urls into staging

Created by: MagdaN

I had to put the urls to extra_urls.py to prevent circular imports (because of how allauth works). Update urls on the client platform like this:

if getattr(settings, 'COSINNUS_IS_OAUTH_CLIENT', False) and getattr(settings, 'COSINNUS_OAUTH_SERVER_BASEURL', False):
    urlpatterns += [
        url(r'accounts/', include('cosinnus_oauth_client.extra_urls')),
        url(r'accounts/', include('allauth.urls'))
    ]

Merge request reports

Loading