clear session table

1
2
3
4
5
6
7
#!/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

More like this

  1. Clear session data on login and logout by jb0t 6 years ago
  2. clear cache view by zodman 1 year, 4 months ago
  3. Clear Django Cache by girasquid 5 years, 6 months ago
  4. cleat_list by Tomek 3 years, 3 months ago
  5. RefreshSessionMiddleware by jcassee 5 years, 8 months ago

Comments

(Forgotten your password?)