Django 3 Update

To install Django 3, change the pip install command to:

pip install "django>=3.0,<4.0" and hit enter.

This is the only change you need to make to run Django 3 - the rest of the examples and code in this course run in both Django 2.2 and Django 3.

To test whether the installation worked, go to your virtual environment and start the Python interactive interpreter by entering python at the command prompt.

If the installation was successful, you should be able to import the module django. Once Django is imported you can then call the get_version function to display the Django version.

Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.get_version()
'3.0.1'
>>>


You can see here I am running Django 3.0.1.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
Pen