Following the instructions bellow to create a fast project Django (version 5) configured with a app core and using bootstrap (version 5).
This template includes:
- Django version: 5.0.x
- Easy settings setup with Decouple
- Use of URL's to manage database access : dj-database-url
- [Black] (https://github.com/psf/black)
- Pytest
- Pytest-django
- Pytest-cov
Lets create your project, you will not clone this repo, just follow the instructions bellow.
NOTE: You may need need to replace myproject placeholder to your project's name, it can break the installation.
mkdir myproject
cd myproject
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install django
mkdir myproject
cd myproject
python -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip
pip install django
Now we can pull Fast Project Template Django's Structure to Project
django-admin startproject --template https://github.com/GregMasterBr/FastProjectTemplateDjango/archive/main.zip --name=.env,pytest.ini myproject .
And then, proceed with the installation of the requirements.
pip install -r requirements.txt
pip install -r requirements-dev.txt
- python manage.py check
- python manage.py migrate
- python manage.py createsuperuser
- python manage.py runserver
- python manage.py collectstatic
- Containers (Docker)
- Pre-commit hooks
- Github actions