A cli tool to setup django for you
- install django if not already installed
- creates django project
- creates django app
- creates settings folder
- creates settings files:
base.py,developmemt.py,production.py - creates
.gitignore,.env.dev,.env,prod, andrequirements.txt - updates
INSTALLED_APPS,DEBUG,ALLOWED_HOSTandBASE_DIR - creates
app_name/urls.py - add
app_name/urls.pytoproject_name/urls.pyurlpatterns uisnginclude() - update prod settings in prod file
- update django to use either env.dev or env.prod based on env var
- Set up a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- install the package
pip install djang-setup- run it and follow the prompt
djang-setup- Star the project :)
