Skip to content

Commit

Permalink
docs: add pipx as an alternative installation method
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinyuz committed Apr 6, 2024
1 parent 4e46acc commit 2611979
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ python3 -m django startproject --extension=gitignore,gitkeep,md,toml \
<project_name> [directory]
```

Or you can also use [pipx](https://github.com/pypa/pipx)

```console
pipx run django startproject --extension=gitignore,gitkeep,md,toml \
--exclude=docs \
--template=https://github.com/yujinyuz/django-as-a-package-layout-template/archive/master.zip \
<project_name> [directory]
```

Or specify a Django version

```console
pipx run --spec "Django==4.*" django-admin startproject --extension=gitignore,gitkeep,md,toml \
--exclude=docs \
--template=https://github.com/yujinyuz/django-as-a-package-layout-template/archive/master.zip \
<project_name> [directory]
```

_Tip: If you want to create the project in your current working directory use `.` as directory argument._

## License
Expand Down

0 comments on commit 2611979

Please sign in to comment.