Wednesday, January 9, 2019

Re: How & Where are Django View Functions Called?

On Thu, 10 Jan 2019 at 14:36, Alejandro Reyes <wa834547@gmail.com> wrote:
Hi,

Suppose I have a standard views.py module in my Django app and that app has a simple function:

def home(request):
   form
=request.POST['form']


Where exactly in the Django framework does it specifically call 'home' with the correctly typed parameter 'request'? I want to know this for Static Code Analysis purposes. Thanks.

When you define your URLs. Each URL, when visited, has a view it triggers. Hence the URL syntax

Cheers
L.


--
------
"The fact that you're still saying something like 'feminism gone mad' suggests that feminism hasn't gone mad ENOUGH yet."

Helen Zaltzman / @HelenZaltzman
https://twitter.com/HelenZaltzman/status/1065384934846545920

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiP8dBJnQQrotSaYOe1RkqU-TwvwSpwCPFJXA75xdnYtxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment