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

Comments

(Forgotten your password?)