Django Cookbook: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 4: | Line 4: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ python -c "import django; print(django.get_version())" | $ python -c "import django; print(django.get_version())" | ||
</syntaxhighlight> | |||
Or, from a python console: | |||
<syntaxhighlight lang="python"> | |||
>>> import django | |||
>>> django.VERSION | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 13:04, 19 November 2015
Current version of Django[edit]
$ python -c "import django; print(django.get_version())"
Or, from a python console:
>>> import django >>> django.VERSION
Current version of Python[edit]
$ python -c "import sys; print(sys.version)"
Upgrading on Windows[edit]
Dependencies[edit]
- Python
- To upgrade python, search for "python windows installer" or some such.
- An .msi installer should be available.
- Make sure to uninstall the previous version of python.
Upgrading Django[edit]
With pip (which is part of the python distribution) installed:
> pip install -U django
This will install the latest release of Django.
The pip command can be run from powershell.[1]
Notes[edit]
- ↑ Upgrading Django to a Newer Version (Django documentation)