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 3 years, 10 months ago
  2. Clear Django Cache by girasquid 3 years, 4 months ago
  3. cleat_list by Tomek 1 year, 1 month ago
  4. HTTP Authorization Middleware/Decorator by schinckel 2 years, 5 months ago
  5. RefreshSessionMiddleware by jcassee 3 years, 6 months ago

Comments

(Forgotten your password?)