Authentication

 What is CSS?

1) CSS Stand for Cascading Style Sheets
2) CSS describes how HTML elements are to be displayed on screen, paper or in other media
3) CSS saves a lot of work. It can control the layout of multiple web pages all at once
4) External stylesheets are stored in CSS files
5) Types of CSS : 
(a) Inline CSS : Inline CSS contains the CSS property in the body section attached with element is known as inline CSS.
(b) Internal CSS : This can be used when a single HTML document must be styled uniquely.
(c) External CSS : External CSS contains separate CSS file which contains only property with the help of tag attributes.

User Registration

1) User registration is used to register your user on your website by using registration form.
2) By keeping user registration on your website, you can validate that the user is valid or it already existing user of your website.

User Login

1) User login is used to manage the user profile.
2) User login works on session management, while doing login user can manage his account.
3) For login first user must to do registration in particular website to manage his account.

Session Management

1) A session is a mechanism to store information on the server side during the interaction with the web application.
2) In Django, by default session stores in the database and also allows file-based and cache based sessions. It is implemented via a piece of middleware and can be enabled by using the following code.
3) Put django.contrib.sessions.middleware.SessionMiddleware in MIDDLEWARE and django.contrib.sessions in INSTALLED_APPS of settings.py file.
4) To set and get the session in views, we can use request.session and can set multiple time too.


#register.html
#login.html
#home.html
#style.css

#view.py
#urls.py

Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Ok, Go it!