Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question