Skip to content
/ drf-template Public template

Template of a Python service that uses Django-REST framework with poetry. Build, test and CI scripts ready.

License

Notifications You must be signed in to change notification settings

Yakser/drf-template

Repository files navigation

drf_template

Template of a Python service that uses Django-REST framework with poetry. Build, test and CI scripts ready.

Linters Tests

Usage

Create virtual environment

🔑 Copy .env.example to .env and change api settings

Install dependencies

  • 🐍 Install poetry with command pip install poetry
  • 📎 Install dependencies with command poetry install --no-root

Install pre-commit hooks

To install pre-commit simply run inside the shell:

pre-commit install

To run it on all of your files, do

pre-commit run --all-files

Apply migrations

🎓 Run python manage.py migrate

Run project

🚀 Run project via python manage.py runserver

About

Template of a Python service that uses Django-REST framework with poetry. Build, test and CI scripts ready.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published