PageView

Stories about Python, Django and Web Development

How to Implement Dependent/Chained Dropdown List with Django

How to Implement Dependent/Chained Dropdown List with Django

Dependent or chained dropdown list is a special field that relies on a previously selected field so to display a list of filtered options. A common use case is on the selection of state/province and cities, where you first pick the state, and then based on the state, the application displays a list of cities located in the state.

Read more



How to Implement Multiple User Types with Django

How to Implement Multiple User Types with Django

This is a very common problem many developers face in the early stages of the development of a new project, and it’s also a question I get asked a lot. So, I thought about sharing my experience with previous Django projects on how to handle multiple user types.

Read more



A Complete Beginner's Guide to Django - Part 7

A Complete Beginner's Guide to Django - Part 7
Welcome to the last part of our tutorial series! In this tutorial, we are going to deploy our Django application to a production server. We are also going to configure an Email service and HTTPS certificates for our servers.

Read more



A Complete Beginner's Guide to Django - Part 6

A Complete Beginner's Guide to Django - Part 6
Welcome to the sixth part of the tutorial series! In this tutorial, we are going to explore in great detail the Class-Based Views. We are also going to refactor some of the existing views so to take advantage of the built-in Generic Class-Based Views.

Read more



A Complete Beginner's Guide to Django - Part 5

A Complete Beginner's Guide to Django - Part 5
In this tutorial, we are going to learn more about protecting views against unauthorized users and how to access the authenticated user in the views and forms. We are also going to implement the topic posts listing view and the reply view. Finally, we are going to explore some features of Django ORM and have a brief introduction to migrations.

Read more