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
Built Distribution
Hashes for pdm_django-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdec46b45e7b58511b1577d0fcee81479400f3af3ef85ad226e58a4cacfa7086 |
|
MD5 | 789d3ee0dfe6c5044110a061b2d04348 |
|
BLAKE2b-256 | 6ab40e495183f1439506dd9808be54dea9ade50364de022416ac879174cf156c |