A starter example for project using Django/MySQL
Stack Information
- django 4.2.x
- mysql latest
The rrerequisites of using this starter example:
Clone this repository, and get into the django-mysql directory,
cd django-mysqlBuild docker images,
$ docker compose buildUp dev environment,
$ docker compose upVisit http://127.0.0.1:8000/
Setup a virtual environment (e.g. python -m venv .venv), and activate it source ./venv/bin/activate.
$ pip install -r requirements-dev.txtpre-commit got installed,
and will run git hook scripts for identifying code issues before git commit.
If you are using any IDE, then configure the IDE to use this virtual environment.