DEV Community

Cover image for Installing Django 2 on Ubuntu 20.04LTS
Joseph Chu
Joseph Chu

Posted on

Installing Django 2 on Ubuntu 20.04LTS

Installing Django 2 on Ubuntu 20.04LTS

I will teach you how to install Django on Ubuntu 20.04LTS using the pip method. There are other methods such as using the APT packages in Ubuntu. I will not be utilizing that method because it isn't that flexible like pip.

These are the steps we are going to follow in this series:

  • Check our version of Python 3
    • Explain how to make Python 3 default over 2.7
  • Installing pip and virtual environment (venv)
    • Explaining how to activate / deactivate the virtual environment
  • Installing Django inside the venv
    • Verifying Django version
  • Creating a Sample Project utilizing Django-Admin
    • Avoiding nesting problems by using . and what it means
    • Migrating the Database and creating a Superuser
  • Modifying the Settings.py ALLOWED_HOSTS
    • Testing your project after modifying
  • Accessing the Admin side of the Sample Project

Top comments (0)