Fast Started Django Project

Following the instructions bellow to create a fast project Django (version 5) configured with a app core and using bootstrap (version 5).

Deploy a fully configured Django Application the fastest way!

This template includes:

Usage

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.

Linux and Mac

mkdir myproject
cd myproject
python3 -m venv .venv 
source .venv/bin/activate
pip install --upgrade pip
pip install django

Windows

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.

[PROD]

pip install -r requirements.txt

[DEV]

pip install -r requirements-dev.txt

Tips

  • python manage.py check
  • python manage.py migrate
  • python manage.py createsuperuser
  • python manage.py runserver
  • python manage.py collectstatic

Future possibilities

  • Containers (Docker)
  • Pre-commit hooks
  • Github actions