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.0.tar.gz (2.8 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.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdm-django-0.5.0.tar.gz
  • Upload date:
  • Size: 2.8 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.0.tar.gz
Algorithm Hash digest
SHA256 df278bf9be80fcea5bffd097aa605c3ac322f6ac65d250ae1f603e634c7faf36
MD5 8583a005129c6ec2554350c6def174c6
BLAKE2b-256 823a8ebc372434b212ffcd521e12cbf490dae72c42b718f6fed87a1e927dcc92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdm_django-0.5.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e2b4592cebfeaf093448b7762df77605aca13de9902cb2c70f94b52c95cab02
MD5 85af5126fcb93a9392df0e0eaf37abd4
BLAKE2b-256 0ce08b6070f2971af19fba786a1e2434af20648083467fa65ecfc1dba48030da

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