On Sun, May 14, 2017 at 1:36 PM, Nick Gilmour <nickefo...@gmail.com> wrote:

> Definition of url:
>
> *def url(regex, view, kwargs=None, name=None):*
>
> I also found this:
> *def view(request, *args, **kwargs):*
>
>
Neither one of these is what was being asked for.

And like several people have said, what's being asked for doesn't exist: a
Django view is defined as a callable Python object which takes as its first
position argument an HttpRequest object, may or may not accept additional
positional and/or keyword arguments, and either returns an HttpResponse
object or raises an exception. That definition does not allow for a single
universal argument signature that will work on all views.

-- 
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+unsubscr...@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/CAL13Cg-GaiFF9E4in7vfaSd6zbiQkSsLRbpXe5Y6YR0KGeKJ_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to