Skip to main content

pdm shortcuts for Django projects

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdm-django-0.5.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdm_django-0.5.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pdm-django-0.5.2.tar.gz.

File metadata

  • Download URL: pdm-django-0.5.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.1.1 CPython/3.10.4

File hashes

Hashes for pdm-django-0.5.2.tar.gz
Algorithm Hash digest
SHA256 47df205f8476d7a1384fb0c227a2a26aeb3e96c74662feaf1878c354e59041a0
MD5 c088d55920676fada268f2bb1105bba1
BLAKE2b-256 490277d0129ba5594efb79a8bbe0d1442aefb3c736d1d646f4cf0afbd6092b05

See more details on using hashes here.

File details

Details for the file pdm_django-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: pdm_django-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.1.1 CPython/3.10.4

File hashes

Hashes for pdm_django-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a57c35ffd560430fe62a80403f6b5dace223fdc6da76c8938b3683cc7408419e
MD5 c0376b844635cf8a2670ddf24c4a91f4
BLAKE2b-256 07edb5a3394506ed186ec40593241adde33837ca15a0a54e5c1b72404c3b299e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page