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