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. run "silent" dev server by justinlilly 5 years, 11 months ago
  2. Use django-admin.py instead of manage.py by whiteinge 4 years, 11 months ago
  3. showing environment variables in the django admin by tonemcd 3 years, 3 months ago
  4. Upload, Progressbar with sessions by revolunet 4 years, 9 months ago
  5. Test and Restart Memcached Server by Digitalxero 4 years, 6 months ago

Comments

(Forgotten your password?)