PageView

Stories about Python, Django and Web Development

How to Use Python Pendulum Library

How to Use Python Pendulum Library

Pendulum is a Python library to make your life easier when it comes down to work with date/time.

Read more



Exploring Django Utils #2

Exploring Django Utils #2

Last week I started a post series exploring the django.utils module. In this second part I will be focusing more on the html module.

Read more



Django Tips #11 Custom Manager With Chainable QuerySets

Django Tips #11 Custom Manager With Chainable QuerySets
In a Django model, the Manager is the interface that interacts with the database. By default the manager is available through the Model.objects property. The default manager every Django model gets out of the box is the django.db.models.Manager. It is very straightforward to extend it and change the default manager.

Read more



How to Create a Password Confirmation View

How to Create a Password Confirmation View

It is a very common practice nowadays to keep alive signed in user sessions for a very long time. But some web pages usually deal with sensitive information (such as billing information or change email forms) and it is a good idea to ask the user to confirm his/her credentials. To achieve this task, we will be using the built-in check_password and the user’s last_login field.

Read more



Django Tips #10 AuthenticationForm Custom Login Policy

Django Tips #10 AuthenticationForm Custom Login Policy

Since I started working with Django, I never had to spend time implementing authentication related stuff. The built-in authentication system is great and it’s very easy to plug-in and get started. Now, even if need to customize, Django makes it easy. That’s what this tip is about.

Read more