Django Users and Registration

Slides:



Advertisements
Similar presentations
How To Log in to the RIBI Template. Open your Internet Browser and type in the address box then press the Enter key on your keyboard.
Advertisements

Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Existing Customer: Please visit Bonaqua Website for registration.
Northwest Nazarene University introduces PDLearn The CPD’s web access course selection and registration system for students and instructors Affiliated.
UO Academic Extension Online Registration Instructions and help.
For new coming user, you need to request account before log-in to the system by 1. Go to 2. Click “Register”
How to send request for activating your Hotmail account go to site 
ASP Cookies Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Blackbaud Web Purchasing Training Session 1. Agenda What is Blackbaud Web Purchasing? How to login to Blackbaud Web Purchasing Create a purchase requisition.
HOW TO USE INIGO. Hello, My Name Is Inigo… Lets walk through how to set up your company with Inigo. You will set up a business card on your phone serving.
Using the Traina Computer Lab Paul Fern November 19, 2007.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 48 How Internet Sites Can Invade Your Privacy.
건전지로 달리는 쟝고 세미나. 파트2 Last time MVC Views and URLconfs.
August – December 2012 Vaccine Ordering and Tracking System (VTrckS) Training.
ProDiesel ® Website Tips Online Cataloging. At the top of each page of our website is an Icon Labeled Web Catalog. Click this icon to go to the Home Catalog.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2012.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2011.
Logging In & Changing Your Passwords New Websites.
Week seven CIT 354 Internet II. 2 Objectives Database_Driven User Authentication Using Cookies Session Basics Summary Homework and Project 2.
Lecture 8 – Cookies & Sessions SFDV3011 – Advanced Web Development 1.
Basic Instructions on how to use One Drive and share files. ONE Drive Your LogoYour own footer.
Tutorials: How to Refer. Welcome This tutorial will take you through the steps to invite your friends and family to take advantage of cash back shopping.
How to Request a Course in Moodle For Teachers New to Moodle Please get Enrollment Key for the Intro to Moodle course from your ITS or
Online Ordering by Karl Riley. Goal all authorized users will successfully enter and track the status of a requisition in the companies computer based.
Step 1 ) Input User name, Password & Verification No. & Click “ Login” Staff Level - Username: mary P/W: 5678 Web-site:
PHP. $_GET / $_POST / $_SESSION PHP uses predefined variables to provide access to important information about the server and requests from a browser.
COOKIES and SESSIONS. COOKIES A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each.
At the Log in page enter your college provided username and password then click submit to login to Owl Link.
Web Database Programming Week 7 Session Management & Authentication.
Naviance Family Connection Senior Guide. Logging In  Go to the RHS website and click the Naviance Family Connection Link.
How to Request for “Patseer Patent Database” Password Gujarat Technological University.
Tender Portal Home Page Entry to secure area Adverts viewed in three areas of the site.
Confidential Web Ordering Overview. Confidential LOG ON:   Enter your login name &
This is a short presentation to explain how and why to login to the CIM website as a member. Benefits are: Access to myCIM (private member area, contains.
Northwest Nazarene University introduces PDLearn The CPD’s web access course selection and registration system for students and instructors Instructor.
CP476 Internet Computing CGI1 Cookie –Cookie is a mechanism for a web server recall info of accessing of a client browser –A cookie is an object sent by.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
MIT AITI 2004 JSP – Lecture 4 Sessions and Cookies.
Introduction to new MyLO for Students PRESENTATION.
How Web Database Architectures Work CPS181s April 8, 2003.
ITM © Port,Kazman 1 ITM 352 Cookies. ITM © Port,Kazman 2 Problem… r How do you identify a particular user when they visit your site (or any.
Log on to Your user name will be the same as your current address except after sign you must enter “irs-mos.org”.
PHP Form Processing * referenced from
Issue Date January OKLAHOMA STATE IMMUNIZATION INFORMATION SYSTEM I IMMUNIZE. SAVE LIVES. Welcome to OSIIS.
COOKIES AND SESSIONS.
How to Navigate the Fort Lee Website And log into your Parent Account Created by Ms. Despotakis and Mrs. Serulle-Green.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.

Weebly overview rev /08/10/2016  Many built-in themes (responsive ones…definition? )  Themes are written in JavaScript so can be modified and developed.
Setting Up User Name/Password (If you do not have a work )
Example of a table. Note that I looked at an example under CIS44.
Web Design and Development
ITM 352 Cookies.
iLab new User Registration
Safe Browsing at SIIT.
Parent Portion of the Student Profile
How to Recover the Disabled Facebook Account
Web Systems Development (CSC-215)
Connect & Canvas Student Registration
New Client Guide.
Getting Started.
1. 4 BECOME A PAGE ADMINISTRATOR
Steps in accessing E-journals (Emerald & Ebscohost)
1. Login to the site.
Website Administrator Cornell
STUDENT TESTING INSTRUCTIONS
Register for a Session To register for a PCSP Form Presentation in your area, please visit the HHS Learning Portal at the following link, and follow.
Project OSCAR Main Page
**Each course title also has a link the class schedule page**
Presentation transcript:

Django Users and Registration

Final Projects Starting projects tomorrow! Each group will meet with us after lecture tomorrow

Today Users in Django apps

Users Keep track of each user’s data Keep track of permissions Name Shopping cart Keep track of permissions

How websites keep track of users

Requesting a page Show me google.com here’s the HTML of the page What is the problem with this? Your computer Facebook’s server 6

Requesting a page Show me my Facebook.com newsfeed Facebook’s server What is the problem with this? Your computer Facebook’s server 7

Requesting a page Show me my Facebook newsfeed I am Leah Alpert! Here’s the HTML of your Facebook news feed What is the problem with this? Your computer Facebook’s server 8

Cookies Keeps track of this data Sites can set and read cookies

Requesting a page, with cookies Submit login form to Facebook.com Here’s a cookie. username = leahalpert What is the problem with this? Your computer Facebook’s server 10

Requesting a page, with cookies Show me Facebook.com. Here’s my cookie: username = leahalpert Here’s the HTML of your Facebook news feed What is the problem with this? Your computer Facebook’s server 11

Cookies Website needs to send these cookies back and forth on every request

Django can do this for you! User database Track what user is logged in on each computer

User Database Already has a class model.User Fields: Methods: username firstname lastname email password Methods: is_authenticated() get_full_name() set_password() email_user()

See and add users

Settings INSTALLED_APPS = ( ‘blog’, … ‘django.contrib.sessions’, ‘django.contrib.auth’, )

Track what user is logged in Let users log in and out Know which user is logged in

Login form class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput)

Get data from form and put it in the database Models Template View User Get data from form and put it in the database

Login form When submit is pressed, sends to view: {username: leahalpert, password: abc123}

View to handle login def login_view(request): uname = request.POST[‘username’] pass = request.POST[‘password’] user = authenticate(username=uname, password=pass) if user is not None: login(request, user)

logout(request) def logout_view(request): logout(request)

Access information about the current user in the views def blog_list(request): ... Request holds information that browser sent to server Access information with request.user request.user.username request.user.email

Referencing the user in a template {% if user.is_authenticated %} <h2>Welcome, {{user.username}}! </h2> {% else %} <h2>Welcome. Please log in.</h2> {% endif %}