dotfiles/home/user/.local/bin/django-create-project
2026-05-22 15:28:08 +03:00

17 lines
381 B
Bash
Executable File

#!/bin/sh -eu
readonly project_name="${1}"
mkdir "${project_name}"
cd "${project_name}"
python3 -m virtualenv venv
#shellcheck disable=SC1091
. venv/bin/activate
pip install django django-types
django-admin startproject core .
git init
mkdir requirements
echo 'django' > requirements/prod.txt
echo '-r prod.txt' > requirements/dev.txt
echo 'django-types' >> requirements/dev.txt