Search⌘ K
AI Features

Django Simple Web App

Explore how to run a Django web application by using fundamental commands such as makemigrations, migrate, and runserver. Understand the purpose of each command, the structure of projects and apps, and how to troubleshoot basic issues to get your web app running smoothly.

Run the app

Until now, we’ve been running the app by simply clicking the Run button. Let’s try to dive into commands needed to run the Django web app.

Run the following commands to see our Django web app in action:

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

If everything goes well, you should see a message like the one below. If not, read the error in the terminal and troubleshoot accordingly.

You should see an output similar to the one demonstrated in the image below.

Live demo

Referencing the commands given at the start of this lesson, ...