Skip to content

First Project

pdm run startproject

Settings pyproject.toml (Demo)

[project]
name = "" # 
version = "" # 
# etc ...

Warning

Make sure that the project's settings look something like the example below. . . or it will not work

pyproject.toml
[project]
name = "myproject"
version = "1.0.0"
# etc ...

Adding a PDM Command

pyproject.toml
[project]
name = "myproject"
version = "1.0.0"
# etc ...

[tool.pdm.scripts]
app = "python manage.py" # 

Finally! Getting Started

pdm app run

Wait

After the server starts, then go to http://localhost:8000/docs

You can notice:

  1. Your project's name
  2. Your project's version

Docs