Django Cookbook: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(Created page with "Category:Django Category:Python Category:Web Development == Current version of Django == <syntaxhighlight lang="bash"> $ python -c "import django; print(django.ge...")
 
No edit summary
Line 11: Line 11:
$ python -c "import sys; print(sys.version)"
$ python -c "import sys; print(sys.version)"
</syntaxhighlight>
</syntaxhighlight>
== Upgrading on Windows ==
=== Dependencies ===
* '''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 ===
With `pip` (which is part of the python distribution) installed:
<syntaxhighlight lang="powershell">
> pip install -U django
</syntaxhighlight>
This will install the latest release of Django.
The `pip` command can be run from powershell.<ref>[https://docs.djangoproject.com/en/1.7/howto/upgrade-version/ Upgrading Django to a Newer Version] (Django documentation)</ref>
== Notes ==
<references />

Revision as of 17:19, 20 March 2015

Current version of Django

$ python -c "import django; print(django.get_version())"

Current version of Python

$ python -c "import sys; print(sys.version)"

Upgrading on Windows

Dependencies

  • 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

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

  1. Upgrading Django to a Newer Version (Django documentation)