Based on django-admin startproject template, but with some basic configurations.
- Clone this repo
- Rename
djDancer
to your project name - Search '!!!' in the code and replace with yours
- modify
.envrc.example
to your.envrc
- Run
direnv allow
Suggested Paketo Builder
# Mac OSX Examle
# install pack cli
brew install buildpacks/tap/pack
# build image
pack build --builder paketobuildpacks/builder-jammy-full djDancer:latest
# tree -L 1 .
.
├── CONTRIBUTING.md
├── Makefile
├── Procfile # CNB build config
├── README.md
├── apps # django apps
├── configs # config files
├── djDancer # project name, Must be Changed
├── gunicorn.conf.py # gunicorn config
├── manage.py
├── .cursorrules # cursor editor prompt
└── requirements.txt
- Install Docker in Local Machine
- Install Dev Container Extension in VSCode
# install python interpreter
pyenv install 3.10.13
# create virtual env
pyenv virtualenv 3.10.13 djDancer
# activate virtual env
pyenv local djDancer
pip install -r requirements.txt
# create env file
echo "export RUN_ENV=DEVELOP" > .envrc
echo "export SECRET_KEY=xxxxx" >> .envrc
# apply env
direnv allow
make migrations
python manage.py migrate
python manage.py createsuperuser --username admin --email admin@admin.com --phone 18888888888
python manage.py runserver 0.0.0.0:8000