{{{#!bash
$ python -c "import django; print(django.get_version())"
}}}
Now that #24857 has been merged, the command could be simplified to:
{{{#!bash
$ 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/
--
Ticket URL: <https://code.djangoproject.com/ticket/26829>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => sadaf2605
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/26829#comment:1>
* stage: Unreviewed => Accepted
Comment:
That looks much simpler indeed :)
--
Ticket URL: <https://code.djangoproject.com/ticket/26829#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"ed1c15d8fbc17e60621ca56f67340987531e647d" ed1c15d8]:
{{{
#!CommitTicketReference repository=""
revision="ed1c15d8fbc17e60621ca56f67340987531e647d"
Fixed #26829 -- Simplified version detection command in tutorial
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26829#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"bcce93b2c54a05c29bd49667db958dce6265d31a" bcce93b2]:
{{{
#!CommitTicketReference repository=""
revision="bcce93b2c54a05c29bd49667db958dce6265d31a"
[1.9.x] Fixed #26829 -- Simplified version detection command in tutorial
Backport of ed1c15d8fbc17e60621ca56f67340987531e647d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26829#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"623ab0e6ae7db1991f8d7683e2a9451a1e378b9f" 623ab0e]:
{{{
#!CommitTicketReference repository=""
revision="623ab0e6ae7db1991f8d7683e2a9451a1e378b9f"
[1.10.x] Fixed #26829 -- Simplified version detection command in tutorial
Backport of ed1c15d8fbc17e60621ca56f67340987531e647d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26829#comment:5>