Installing Django

Django 2 is hosted in Python Package Index (PyPI), so use pip to install it. It can also be downloaded and installed manually. Using pip to install Django will also install the required dependency, pytz. Django will be downloaded from PyPI as a wheel and installed. 

Because Django 2 is a major update which has been recently released, we have to ensure that pip installs the correct version. With this command, we will install Django 2.0:

C:\Python36\Scripts>pip install Django==2.0

The module will be installed, along with the supporting modules:

Django 2.0 is used in this chapter. Use the latest version of Django 2 available ...

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.