Minimalish is a Django Project Template. It's an opiniated, deployment-ready, "good enough" starting point that includes most of everything you'd want to have in a Django project:
.env
(useful on dev)copy & paste the code below to start a new Django project based on this template:
echo -n "what's your project name (short, lowercase-only, no spaces or hyphens, etc.)? "
read PROJECTNAME
mkdir $PROJECTNAME
cd $PROJECTNAME
python3 -m venv venv
source venv/bin/activate
pip install Django==5.1
django-admin startproject --template=https://github.com/gregsadetsky/minimalish-django-starter/archive/main.zip -n .env.example -n README.starter.md -n serve.sh $PROJECTNAME .
pip install -r requirements.txt
git init
mv starter $PROJECTNAME
mv README.starter.md README.md
cp .env.example .env
mkdir core/frontend/static
python manage.py migrate
(cd core/frontend && npm install)
then:
DJANGO_SECRET_KEY
value in the .env
filepython manage.py runserver
cd core/frontend
npm run dev
to deploy using disco:
Minimalish uses:
python-dotenv
os.environ[]
rather than the softer os.getenv()
which by design silently fails. if an env var can't be found, that's a problem that needs addressingwhitenoise
for static file servingcore
default/main app with a mini /
function view & template filethis project was initially created during my time at the Recurse Center. thanks to Rob Simmons for the contributions!
[^1]: because you only get one chance