Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urls.py not compatible with Django 1.11 #15

Open
jannekanerva opened this issue Sep 29, 2017 · 0 comments
Open

urls.py not compatible with Django 1.11 #15

jannekanerva opened this issue Sep 29, 2017 · 0 comments

Comments

@jannekanerva
Copy link

The library can't be used with newest Django. New Django doesn't support patterns(...) anymore. It uses plain brackets instead.

Maybe like this?

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r"^login/(?P<uuid>[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12})/$", views.LOTLogin.as_view(), name="login"),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant