[Django]-How to call multiple views on one url in pinax

1👍

Don’t do this. Try to wrap your head around what is going on between the browser and the webserver. A URL identifies content that the server will return to the client. Calling 2 “views” violates that principle.

What you really want to do is create a new URL, or modify the templates to put both forms on the same page. I’d probably rename SignupOrLoginView and do the signup work in that single view.

This would be easier to understand in a functional view instead of a class based view which seems to constrain you to a single form.

Leave a comment