Create data-driven websites by using the Python framework Django
Use Django to create data-driven websites.
In this learning path, you'll use Django to:
- Build an app.
- Create and manage a database.
- Set up a superuser for the admin site.
- Use templates to create dynamic HTML pages.
- Design data-driven forms.
Prerequisites
- Intermediate knowledge of Python:
- Package management
- Inheritance and mix-ins
- Intermediate understanding of HTML and CSS
Achievement Code
Would you like to request an achievement code?
Modules in this learning path
Django is one of the most popular Python web frameworks. It's especially powerful when working with a data-driven application, where the main goal is to provide a front end to a database. Django comes with numerous features built in to streamline the development process. In this module, we explore the benefits of Django, how to install it, and how to create your first project.
Django is focused on data-driven applications, so it provides its own object-relational mapper (ORM). We'll explore ORM concepts and how the Django ORM works. We'll create our own models and set up the database.
Probably the most popular feature of the Python framework Django is its built-in admin site, which allows internal users to manage data without having to create a special utility. We'll explore how to configure users to use this site and how to set up the site itself.
As with every web framework, Django has a templating engine for creating dynamic HTML. The information that the user wants to access is created by this engine and presented through views. We'll explore how the engine works and the process of creating views in Django.
Because Django was designed for data-driven applications, it includes numerous built-in utilities to streamline the amount of code needed. One key area where Django makes a developer's life easier is by providing generic views, which are prebuilt with all the necessary code to perform core operations like displaying and editing data. We'll see how we can use generic views to greatly reduce the amount of code required.
To make your application available to the world, you need to host it somewhere. Here you'll deploy your application to Azure and create a database for the data.