pdm-django: Django command shortcuts for PDM
A plugin that gives you command shortcuts for developing with PDM.
pdm run python manage.py runserver
-> pdm manage runserver
pdm run django-admin startproject narf
-> pdm django-admin startproject narf
Install
pdm plugin add pdm-django
Usage
manage.py
Example: pdm manage runserver
django-admin
Example: pdm django-admin startproject narf
Configuring .env
pdm-django inherits from the pdm run
command, so if you would like to load a dotenv file, use the same notation in your pyproject.toml
file.
[tool.pdm.scripts]
_.env_file = ".env"
Shameless Plugs
I built this library originally for the NeutronSync Service. So if you would like to support this project please support the service with a subscription to NeutronSync or a donation to the open source libraries.