hello
i want to learn MIDDLEWARE in django .
i created this:
class SimpleMiddleware(object):
def process_request(self, request):
print("%%%%%%%%%%%%%%%%")
and i added in settings.py. then as you probably know i see "%%%%%%" in
console with every click.
that is the exact thing that i except.
but when i change name of method:
def hello(self, request):
print("%%%%%%%%%%%%%%%%")
it doesn't work anymore .
is process_request a keyword? where can i find list of this names ?
--
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 [email protected].
To post to this group, send email to [email protected].
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/504db6b6-c18f-4c2b-8453-9d6db429b966%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.