Answers for "django set session variable"

1

django set session variable

request.session['idempresa'] = idempresaValue
Posted by: Guest on November-10-2020
0

django flush sessions on server startup

#!/bin/sh

# clear django_session table
DJANGO_SETTINGS_MODULE="myproj.settings" \
  python -c 'from django.contrib.sessions.models import Session; \
    Session.objects.all().delete()' 
python manage.py runserver
Posted by: Guest on February-12-2020

Code answers related to "django set session variable"

Python Answers by Framework

Browse Popular Code Answers by Language