Instruction: Describe the process of creating and applying custom middleware in a Django application.
Context: This question tests the candidate's understanding of Django's middleware framework and their ability to extend or modify the request/response processing flow.