T
T
TitanFighter2016-08-30 03:39:00
Django
TitanFighter, 2016-08-30 03:39:00

Is there any other way to call views and get the form\template, other than direct access through the url?

Greetings.
I'm screwing for the second day, no one can help.
There is such an application, django-allauth for login\registration. I want to stick a login\registration form as a dropdown block to the menu at the top of the site (like a tweeter).
I know only 1 method of how to access the views of the application - this is to make a request by url. The problem is that I don’t know (and don’t even have any idea) how to make this request by url from the menu in order to get a form or template with a form from allauth views in response.
On stackoverflow, they tell me that I need to make my own views, but:
1) they don’t explain why (and I don’t understand, because I assume that you can use the native views from allauth)
2) even if I write my own views, how can I access it from the menu? I want to pay attention - I want to add a login form not as a link, so that it redirects to the login form, but I want to have this form on each page of the site as a menu component.
Thanks to.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2016-08-30
@MrCute

1) View in order to authorize the user f-ami login, etc.
2) Well, make the form what you want, and send data via Post to the URL attached to the authorization view

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question