Previous Page Next Page

Exercises

1.Add a new middleware application to the django.middleware.custom.py file that appends footers with some kind of copyright or information string to every response.
2.Add another new middleware application with a request preprocessor function that determines which Person object matches the user in the request. Then modify the desc field of the Person object that matches the one in the request to include a string noting which IP address they are using.

Previous Page Next Page