Commit 1bce5d17 authored by Vincent Le gallic's avatar Vincent Le gallic

[wsgi] On fait plutôt confiance à settings.LOCATION qu'à settings.DEBUG

parent bdbc063b
......@@ -6,7 +6,7 @@ import settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
if not settings.DEBUG:
if settings.LOCATION == "o2":
from django.contrib.sessions.models import Session
Session.objects.all().delete()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment