response self get_response request with open information txt as file u

1
2
3
4
5
6
7
8
response = self.get_response(request)
with open('information.txt', 'a') as file:
url = request.path
method = request.method
file.write(str(datetime.datetime.now()) + '\t')
file.write(url + '\t')
file.write(method + '\n')
return response