- Author:
- rubic
- Posted:
- February 28, 2007
- Language:
- Python
- Version:
- Pre .96
- Score:
- 0 (after 0 ratings)
This bash script clears the session variables prior to running the development server.
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
- find even number by Rajeev529 1 month ago
- Form field with fixed value by roam 1 month, 3 weeks ago
- New Snippet! by Antoliny0919 1 month, 4 weeks ago
- Add Toggle Switch Widget to Django Forms by OgliariNatan 4 months, 2 weeks ago
- get_object_or_none by azwdevops 8 months, 1 week ago
Comments
Please login first before commenting.