Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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 Md. Sadaf Noor, 8 years ago

Owner: changed from nobody to Md. Sadaf Noor
Status: newassigned

comment:2 by Sasha Romijn, 8 years ago

Triage Stage: UnreviewedAccepted

That looks much simpler indeed :)

comment:3 by Baptiste Mispelon <bmispelon@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In ed1c15d8:

Fixed #26829 -- Simplified version detection command in tutorial

comment:4 by Tim Graham <timograham@…>, 8 years ago

In bcce93b2:

[1.9.x] Fixed #26829 -- Simplified version detection command in tutorial

Backport of ed1c15d8fbc17e60621ca56f67340987531e647d from master

comment:5 by Tim Graham <timograham@…>, 8 years ago

In 623ab0e:

[1.10.x] Fixed #26829 -- Simplified version detection command in tutorial

Backport of ed1c15d8fbc17e60621ca56f67340987531e647d from master

Note: See TracTickets for help on using tickets.
Back to Top