Skip to content

First Project

pdm run startproject

Settings pyproject.toml (Demo)

[project]
name = "" # (1)
version = "" # (2)
# etc ...
  1. Required - The Project Must Have a NAME.
  2. Required - The Project Must Have a VERSION Ex: (0.1.0).

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" # (1)
  1. Command - Manage Application.

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