mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-07-06 17:14:07 +00:00
15 lines
400 B
Python
15 lines
400 B
Python
![]() |
from django.urls import resolve
|
||
|
from django.http import Http404, HttpResponseNotFound
|
||
|
|
||
|
class RequestLogger:
|
||
|
def __init__(self, get_response):
|
||
|
self.get_response = get_response
|
||
|
|
||
|
def __call__(self, request):
|
||
|
print(f"Original: {request.build_absolute_uri()}")
|
||
|
print(f"Path : {request.path}")
|
||
|
|
||
|
response = self.get_response(request)
|
||
|
|
||
|
return response
|