hi,
instead of
from django.contrib.auth.views import login
you need to use
from django.contrib.auth import login
regards.
On Sat, Jul 7, 2018 at 6:41 AM, Ahmad wrote:
> hello everyone,
>
> when i import this line it's not working.
> from django.contrib.auth.views im
you want LoginView
https://docs.djangoproject.com/en/2.0/topics/auth/default/#django.contrib.auth.views.LoginView
On Saturday, July 7, 2018 at 7:42:53 AM UTC-4, Ahmad wrote:
>
> hello everyone,
>
> when i import this line it's not working.
> from django.contrib.auth.views
hello everyone,
when i import this line it's not working.
from django.contrib.auth.views import login
My Django Versions is 2.0
from django.conf.urls import url
from . import views
from django.contrib.auth.views import login
urlpatterns = [
url(r'^$',views.home),
3 matches
Mail list logo