Skip to content

Router throws AttributeError when project urls.py follows django 2 style urls. #100

Description

@daanvdk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions