1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 03:18:27 +02:00

Send solutions

This commit is contained in:
Yohann D'ANELLO
2020-05-04 23:37:21 +02:00
parent 9499e10524
commit 26eacad2fd
9 changed files with 118 additions and 21 deletions

View File

@ -55,7 +55,6 @@ class SessionMiddleware(object):
request.user = TFJMUser.objects.get(pk=request.session["_fake_user_id"])
user = request.user
print(user)
if 'HTTP_X_FORWARDED_FOR' in request.META:
ip = request.META.get('HTTP_X_FORWARDED_FOR')
else: