Move urls to extra urls.py
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'))
]