E
E
expp2020-06-22 12:08:53
Django
expp, 2020-06-22 12:08:53

How to make your own login form?

Good afternoon. As I know, django provides its own login form (aka login form). That is, we can not create it, but simply write a line in urls.py:
path('', include('django.contrib.auth.urls')).
And call this form in the html template.
But how can you make your own form, that is, not use the standard one? I tried simply in the html template to replace the form call with two and , but unsuccessfully, the form began to cause an error. Perhaps you need to set some special value for name? Thank you)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-06-22
@expp

I tried simply in the html template to replace the form call with two and , but unsuccessfully, the form began to cause an error.

If you don't have an understanding of how it works, start learning from the offsite tutorial.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question