21 lines
388 B
Bash
Executable File
21 lines
388 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
set -ue
|
|
|
|
|
|
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
|