[Fixed]-Django error on simple app while run the program

1👍

String reference is not allowed since Django 1.10.

import django.contrib.auth.views

urlpatterns = [
    ...
    url(r'^login/$', django.contrib.auth.views.login, name='login'),
    ...

Change your urls.py code as mention above and it might work.

Leave a comment