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.html
file: specific structure depends on the CSS framework you choose - An empty
main.js
instatic/your_project/javascript/
that's included inbase.html
- An empty
main.css
instatic/your_project/css/
that's included inbase.html
- A
.gitignore
with sane defaults Pipfile
forpipenv
support: structure depends on the options you choose- A simple,
gitignore
d.env
file for environment variable management (with the pre-installedpython-decouple
) - A top level
tests
folder .pylintrc
file for basic Python linting (pre-installed:pylint
andpylint-django
).eslintrc
file 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 shell
to enter your virtual environment python manage.py migrate
to run the initial migrationpython manage.py runserver
to 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.