- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 47 Articles for Django

646 Views
We will learn about how to create Abstract Model Class in Django. An abstract model class in Django is a model that is used as a template for other models to inherit from rather than one that is meant to be created or saved to the database. In an application, similar fields and behaviours shared by several models can be defined using abstract models. With Django, you define a model class that derives from Django.db.models to establish an abstract model class. Model and set True for the abstract attribute. The attributes and methods of this abstract class will be inherited ... Read More

753 Views
Django, a broadly used and effective web framework for Python, has made it less difficult for developers to create dynamic, information-driven web applications. One of the essential components of web packages is the capability to create and manage forms. Django affords a robust shape device that allows developers to fast create, validate, and process forms. In this post, we will explore a lesser-acknowledged feature of Django's form system - the {{ form.as_p }} method which makes it smooth to render forms as paragraphs. Django Forms Before diving into {{ form.as_p }}, let's briefly review how Django forms work. Django ... Read More

307 Views
What is Django? Django is a well-known web framework written in Python that enables developers to create web applications more quickly. The views in a Django application are the ones in charge of processing HTTP requests and sending back HTTP answers. Class-based views, also known as CBVs, are an alternative to function-based views, also known as FBVs. They provide a method to designing views that is more object-oriented. Python classes that inherit from one of Django's built-in view classes are what are referred to as CBVs in the Django framework. These classes provide methods that correlate to the various HTTP ... Read More

218 Views
Introduction For companies and organizations wanting to get insights and predictions from their data, machine learning has emerged as a critical tool. TensorFlow and scikit-learn are two well-liked frameworks for putting machine learning algorithms into practice (sklearn). Google created the deep learning library TensorFlow, whereas Sklearn is a more versatile machine learning framework. These two libraries will be compared, contrasted, and their applications to the Django web framework will be discussed in this article. TensorFlow is particularly well-suited for creating and training neural networks, which makes it the best choice for projects like text classification, voice and picture recognition, and ... Read More

2K+ Views
Django is equipped with built-in permissions system that assigns permissions to specific users or groups of users. Permissions used by the Django-admin site are as follows, Users with the "view" or "update" permission for that type of object have access to view objects. Only users with the "add" permission for that type of item have access to view the "add" form and add an object. Users having the "change" permission for that type of item have access to the change list, the "change" form, and the ability to change an object. Only users having the "delete" permission for that ... Read More

4K+ Views
The demand for dynamic websites increased as more features were required in websites. In this, in addition to delivering content, the server stores data and responds to user input. One of the key reasons for having a dynamic site is the ability to authenticate users and limit the material they may access. User objects are the core of the authentication system. Like mentioned above, users are the people interacting with your site. they are used to enable things like restricting access, registering user profiles, associating content with creators etc. Let us go ahead and understand how to create users and ... Read More

3K+ Views
Static and dynamic websites are the two types of websites widely used on the web. Django is a web development framework for creating dynamic webpages. A static website is one that only displays information and has no interaction other than simple page requests that is recorded on the server. The purpose of a static website is for the server to provide HTML, CSS, and JavaScript to the client. More features needed to be included in websites which increased the demand for dynamic websites. In which the server keeps data and responds to user input in addition to presenting content. The ... Read More

597 Views
Session hijacking or session forging is another security issue that most websites are prone to. In this article, we will know more about the attack and how to protect your website against it. This is a wide class of attacks on a user's session data, rather than a specific assault. It has many forms and they are discussed below. A man-in-the-middle attack occurs when an attacker intercepts session data as it travels over the network. A cookie-forging attack is another type, in which an attacker alters the apparently read-only data saved in a cookie. Websites that have saved cookies ... Read More

580 Views
In order to work with users’ data, first we keep track of data using sessions and later we enable user login by using those sessions. A system that allows developers to authorize an auth/auth system is a term used to describe the system that enables user authentication and authorization. The name (auth/auth) recognizes that dealing with users is often a two-step process. Check a username and password against a database of users to verify (authenticate) that a person is who he or she claims to be. Verify (authorize) that the user is authorized to do a specific operation, usually ... Read More

450 Views
In a web application, there are two key elements to data management. The first is to save data acquired from multiple browser queries, and the second is to use this preserved data to authenticate users. Sessions allow us to keep track of data across numerous browser queries. The second half of the equation is logging in users using those sessions. We cannot trust people to be who they claim they are, so we have to verify their identities along the process. Django, of course, includes tools to perform these and other typical tasks. User accounts, groups, permissions, and cookie-based user ... Read More