add bash func to start django project

This commit is contained in:
thek4n 2024-09-27 09:29:50 +03:00
parent 82de8a8cd1
commit a1be3129ad

View File

@ -182,3 +182,16 @@ most-often-commands() {
sshx() {
ssh -X -o ControlMaster=no -o ControlPath=none "$@"
}
django_start_project() (
set -ue
local -r project_name="$1"
mkdir "$project_name"
cd "$project_name"
python3 -m virtualenv venv
. venv/bin/activate
pip install django
django-admin startproject core .
git init
)