Skip to main content

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

Requirements

Tested with PDM 2.1.X

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"

CLI Option Conflicts

You may run into some options conflicts between the pdm command and the Django command you run. As of right now the only one I can find is pdm manage --help for which you will get the pdm help instead of the Django help. However, note you can still run pdm manage or pdm manage help to view the Django help. Same situation applies for pdm django-admin --help.

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.

Release files for pdm-django 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdm-django 1.0.0
File Size Uploaded
pdm-django-1.0.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdm-django 1.0.0
File Interpreter ABI Platform
pdm_django-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / pdm-django-1.0.0.tar.gz

Download URL pdm-django-1.0.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61686c6a2c2174773ae87d636bda1291d4e0fae7b1bb7f24e3e9dbbbccf1a592
BLAKE2b-256 checksum
How to use checksums
3ab82175f8dae8b494c7e607ed6ea5600feb9b199b21e6e19db0ca59574811f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.5.2 CPython/3.10.6

Release files / pdm_django-1.0.0-py3-none-any.whl

Download URL pdm_django-1.0.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82c4a300915b8e608e4392757a5271d134fefc0489cd2dec416f7c7c1e2d59ec
BLAKE2b-256 checksum
How to use checksums
a87b675d30cbac10fb13ced938ce051b0acab5f5de1df54a9ccd8288104c6259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.5.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page