how to creat file object in session django code example
Example: django flush sessions on server startup
#!/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