You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Django 2 you import url functions from django.urls instead of django.conf.urls.
However since binder.router only imports django and then uses django.conf.urls this throws an AttributeError when the url file does not import django.conf.urls itself. This used to always be the case since this is how old projects configured urls which is probably why this slipped through. For now just importing django.conf.urls in the project fixes the issue but probably should be fixed in binder itself.
The text was updated successfully, but these errors were encountered:
In Django 2 you import url functions from
django.urls
instead ofdjango.conf.urls
.However since
binder.router
only importsdjango
and then usesdjango.conf.urls
this throws anAttributeError
when the url file does not importdjango.conf.urls
itself. This used to always be the case since this is how old projects configured urls which is probably why this slipped through. For now just importingdjango.conf.urls
in the project fixes the issue but probably should be fixed in binder itself.The text was updated successfully, but these errors were encountered: