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-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdm-django-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.5.2 CPython/3.10.6

File hashes

Hashes for pdm-django-1.0.0.tar.gz
Algorithm Hash digest
SHA256 61686c6a2c2174773ae87d636bda1291d4e0fae7b1bb7f24e3e9dbbbccf1a592
MD5 a4f6c886477577f6fa7fa04f3a4a900a
BLAKE2b-256 3ab82175f8dae8b494c7e607ed6ea5600feb9b199b21e6e19db0ca59574811f5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pdm_django-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82c4a300915b8e608e4392757a5271d134fefc0489cd2dec416f7c7c1e2d59ec
MD5 99ce8a0ad5e46e79d6819f498d175913
BLAKE2b-256 a87b675d30cbac10fb13ced938ce051b0acab5f5de1df54a9ccd8288104c6259

See more details on using hashes here.

Supported by

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