What is Django?

Django is a tool, written in Python, that helps you create websites.

You already know how to write Python programs that run in the terminal. Django lets you use that same Python to make pages people can open in a browser, like a university site with departments and students.

This kind of tool is called a web framework. A framework is not a new language. It is Python code that already handles the common website jobs, so you write the parts that are specific to your project.

Building a website from nothing is hard. Django gives you those common parts already done, so you can focus on your own idea: the pages, the data, and how they connect.

Someone opens a page in a browser. The browser asks Django for that page. Django runs your Python, then sends HTML back. The visitor never runs your .py files; they only see the result in the browser.

In this module you will build a small university website. You will show departments and students on the screen, and you will add new ones through forms.





In order to save your progress and be able to pass to the next lesson you need to LOGIN

×