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

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.3.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.3.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdm-django-0.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for pdm-django-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8ceebf3631ac4ba19e2950b16404b1c804587eea923ba251de7a8bdfee0f15de
MD5 17d2d3d733f683bd349093195fabb8a8
BLAKE2b-256 9ac999b02179187e2ffe5b9d7cf68b895b1db3869d9432e797e4f7755e33e872

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdm_django-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for pdm_django-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9221dd3bb9eeffe94c07b6372a1bb1ad3241470a5f086caa291dfcf05460544a
MD5 68bacadeaddb6ad26c6bca3e8776d215
BLAKE2b-256 07a1e9cf90bff069c4ebc9e464bd3e9873c77272af6f576c65f4fa0ef8189558

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