Search results for: django
83 results found.
Django password_change() View
Django provides the following two views functions which help us to change passwords. View Function Description password_change() It displays a password change form, which allows the user to ch…
Read MoreDjango Logging Users In and Out
Django provides built-in URL patterns and view functions which makes adding login and logout system to your site a breeze. But before we add them to our project, we will create login and logout syste…
Read MoreDjango Authentication Framework Basics
Django has an authentication framework which allows us to add login functionality to our application easily. In addition to that it provides following things: User Model. Permissions - A way to giv…
Read MoreSessions in Django
In the last chapter (Cookies in Django), we have learned how cookies allow us to store data in browser easily. Although no doubt cookies are useful, they have following problems. An attacker can mo…
Read MoreCookies in Django
HTTP is a stateless protocol. In other words, when a request is sent to the server, it has no idea whether you are requesting the page for the first time or you are the same person who has visited th…
Read MorePagination in Django
As the situation stands, On every page of our blog, we are displaying all the posts at once. We don't have many posts at this point, but if we had hundreds or thousands of posts then loading them…
Read MoreHandling Media Files in Django
In Django, files which are uploaded by the user are called Media or Media Files. Here are some examples: A user uploaded image, pdfs, doc files etc while publishing a post. Images of products in an…
Read MoreHandling Static Content in Django
At this stage, our website looks very simple because we haven't yet added any images, CSS, and JavaScript to it. In Django, we refer to these files as Static Files as they don't change freque…
Read MoreDjango Rendering Fields Manually
In lesson Displaying Forms in Django we have learned various ways to display forms in Django. Although the methods discussed allow us to quickly create a form, it also gives us least control over how…
Read MoreBuilding Contact Us Page
In this lesson, we are going to create a Contact Us page. This page will allow our readers to send feedback directly to the admin email address. Open models.py from the blog app and append the Feedb…
Read More