Quick install guide

Before you can use Django, you’ll need to get it installed. We have acomplete installation guide that covers all thepossibilities; this guide will guide you to a minimal installation that’ll workwhile you walk through the introduction.

Install Python

Being a Python Web framework, Django requires Python. SeeWhat Python version can I use with Django? for details. Python includes a lightweightdatabase called SQLite so you won’t need to set up a database just yet.

Get the latest version of Python at https://www.python.org/downloads/ or withyour operating system’s package manager.

You can verify that Python is installed by typing python from your shell;you should see something like:

  1. Python 3.x.y
  2. [GCC 4.x] on linux
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>>

Set up a database

This step is only necessary if you’d like to work with a “large” database enginelike PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consultthe database installation information.

Install Django

You’ve got three options to install Django:

Always refer to the documentation that corresponds to theversion of Django you’re using!

If you do either of the first two steps, keep an eye out for parts of thedocumentation marked new in development version. That phrase flagsfeatures that are only available in development versions of Django, andthey likely won’t work with an official release.

Verifying

To verify that Django can be seen by Python, type python from your shell.Then at the Python prompt, try to import Django:

  1. >>> import django
  2. >>> print(django.get_version())
  3. 3.0

You may have another version of Django installed.

That’s it!

That’s it – you can now move onto the tutorial.