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