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-mysql
Build docker images,
$ docker compose build
Up dev environment,
$ docker compose up
Visit 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.txt
pre-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.