Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: how to convert a multy digit array into a whole number 
Shell :: elastic sense download 
Shell :: docker image layer storage windows 
Shell :: Errno::EPERM: Operation not permitted @ dir_s_mkdir - /usr/local/Cellar 
Shell :: dos search include subdirectories 
Shell :: sublime text 3 terminal 
Shell :: ogv to gif linux 
Shell :: install lutris ubuntu 20.04 
Shell :: wtmp is not readable 
Shell :: vim reload highlight 
Shell :: my numpad stopped working in ubuntu 
Shell :: install opam on centos 
Shell :: uxmovemen 
Shell :: directory listing 
Shell :: failed to write object git pull 
Shell :: show all vscode extensions installed in commandline 
Shell :: separate a file by pattern 
Shell :: How To Configure WiFi on Raspberry Pi - NAYCode.com 
Shell :: kubernetes get crd and their namespaces 
Shell :: github link to commit in another repository 
Shell :: put all folders with specific name in git ignore 
Shell :: how to change language keyboard shortcut ubuntu 
Shell :: read not working in shell script 
Shell :: arch linux turn on wifi 
Shell :: git commit id 7 characters 
Shell :: blender newest repository 
Shell :: filmora remove watermark free 
Shell :: git replace parent 
Shell :: Create a short command in bash using alias 
Shell :: phone backup in linux system using wifi 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =