Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
120 views

Advance: Django: Python Web Framework (Part-2)

The document discusses Django web framework and building authentication functionality. It describes creating apps for user login/logout and registration. Methods and HTML pages are created to handle authentication events like login, logout, and invalid login. The login process involves login, loggedin, and logout pages. A new signup app is also created to handle user registration, with models, views, forms and admin integration.

Uploaded by

Saurabh Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

Advance: Django: Python Web Framework (Part-2)

The document discusses Django web framework and building authentication functionality. It describes creating apps for user login/logout and registration. Methods and HTML pages are created to handle authentication events like login, logout, and invalid login. The login process involves login, loggedin, and logout pages. A new signup app is also created to handle user registration, with models, views, forms and admin integration.

Uploaded by

Saurabh Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Advance

Django: Python Web Framework


(Part-2)
By: Dr. Vipin
Kumar

Django: urls of project


Make an other app
Set the website\ulrs as follow:

Django: urls of app


Make methods as follow: Login, auth_view

Django: View of Django_test app


Make methods in the Django_test app as follow: Login

Django: View of Django_test app


Make methods in the Django_test app as follow: auth_view

Django: View of Django_test app

Make methods in the Django_test app as follow:

loggedin, invalid_login and logout

Django: .html Pages Corresponding Each Methods in View

HTML page:

login.html

Django: .html Pages Corresponding Each Methods in View

HTML page:

loggedin

Django: .html Pages Corresponding Each Methods in View

HTML page:

logout

Django: .html Pages Corresponding Each Methods in View

HTML page:

invalid_login

Django: User login and logout


Login , loggedin and logout pages
Login
page

Logge
d page

Logout
page

Django: User Registration

Django: Create a new app called signup


Website: urls

Django: Create a new app


Signup:urls

Django: Create a new app


Signup:models

Django: Create a new app


Signup: views

Django: Create a new app


Signup: forms

Django: Create a new app


Signup: admin

Django: Create a new app


Signup: admin

Thank You

You might also like