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
Also in Shell:
- linux df -h levels occupy
- free port in linux
- convert excel to csv command line linux
- vant github
- bash measure execution time
- create symbolic link linux
- kill all python processes ubuntu
- git change user for single repo
- tab to csv command line
- nano edit a file
- raspberry specific kernel version
- get full path of files in directory linux command
- list of files in git commit
- install virtualenv conda
- linux command to check memory usage in percentage
- redirect folder to 403
- linux find file
- pip installer for mac
- connect local repository to remote git
- install kubernetes on ubuntu
- raspberry shell get datetime now
- scheduler ubuntu cmd
- undo git pull origin master into feature branch
- install x centos 7