you changed the import to something else, right?  but you didn't change the 
actual use of the old import to the new.

On Monday, August 27, 2018 at 8:05:03 AM UTC-4, Tim Vogt wrote:
>
> Thanks I tired bout get another error
>
> File "/Users/timvogt/Software_projects/learning_log/users/urls.py", line 
> 15, in <module>
>     url('login/', login, {'template_name': 'users/login.html'}, 
> name='login'),
> NameError: name 'login' is not defined
>
>
>
> """Defines URL patterns for users"""
>
> from django.conf.urls import url
> from . import views
> # from django.contrib.auth import login
> from django.contrib.auth.views import LoginView
> app_name='users'
>
>
> urlpatterns = [
>               # Login page
> url('login/', login, {'template_name': 'users/login.html'}, name='login'),
> # Logout page
> url('logout/', views.logout_view, name='logout'),
> ]
>
>
> tim
>
> Op 27 aug. 2018, om 13:29 heeft Jason <jjohn...@gmail.com <javascript:>> 
> het volgende geschreven:
>
> you're importing the wrong login.  you need to import the login view.  
> almost there, just
>
> from django.contrib.auth.views import LoginView
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users...@googlegroups.com <javascript:>.
> To post to this group, send email to django...@googlegroups.com 
> <javascript:>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/5b12c855-6fb8-4887-b0ba-0dde7d29fea2%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/5b12c855-6fb8-4887-b0ba-0dde7d29fea2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b8793c00-d957-4794-91be-ff1083961376%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to