#26829 closed Cleanup/optimization (fixed)
Simplify the first tutorial command
Reported by: | Baptiste Mispelon | Owned by: | Md. Sadaf Noor |
---|---|---|---|
Component: | Documentation | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
The first step of the tutorial [1] is to check that Django is installed. The command it gives for this is:
$ python -c "import django; print(django.get_version())"
Now that #24857 has been merged, the command could be simplified to:
$ python -m django --version
I think this looks more straightforward and less like a magic bash incantation.
[1] https://docs.djangoproject.com/en/dev/intro/tutorial01/
Change History (5)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Note:
See TracTickets
for help on using tickets.
That looks much simpler indeed :)