A cookiecutter that's simple yet flexible for quick scaffolding of Django projects. Save on boilerplate code and start prototyping/developing within seconds.
- CSS framework (optional): Bootstrap 4 | Tailwind CSS (default) | none
- jQuery CDN (default: no)
- A simple
base.htmlfile: specific structure depends on the CSS framework you choose - An empty
main.jsinstatic/your_project/javascript/that's included inbase.html - An empty
main.cssinstatic/your_project/css/that's included inbase.html - A
.gitignorewith sane defaults Pipfileforpipenvsupport: structure depends on the options you choose- A simple,
gitignored.envfile for environment variable management (with the pre-installedpython-decouple) - A top level
testsfolder .pylintrcfile for basic Python linting (pre-installed:pylintandpylint-django).eslintrcfile for basic JavaScript linting.
Requires: cookiecutter
- Make sure you have installed all the dependencies.
- Navigate to the folder in which you want to scaffold your Django project
- run
cookiecutter path_or_url/to/this/repository - Fill in your project's details
- run
pipenv install - run
pipenv shellto enter your virtual environment python manage.py migrateto run the initial migrationpython manage.py runserverto start the dev server atlocalhost:8000- Profit
Contributions that keep this project flexible and simple are more than welcome. Feel free to fork this repository and adapt it for any of your needs.
- Support for optional DRF/Rest-API scaffolding
- Support for optional Django Debug Toolbar
- Support for
django-compressor - Add tests
Read the tutorial (coming soon) or get in touch.