SlideShare a Scribd company logo
1 of 2
Download to read offline
Using the Graphical User Interface (GUI):
Create a user named CMIT140.
Login in as CMIT140.
Add a program to start when CMIT140 logs into the system.
Verify the program starts when CMIT140 logs into the system by logging out and then logging
back in as CMIT140.
Delete the CMIT140 user.
Need to use Python if possible
Using the Graphical User Interface (GUI):
Create a user named CMIT140.
Login in as CMIT140.
Add a program to start when CMIT140 logs into the system.
Verify the program starts when CMIT140 logs into the system by logging out and then logging
back in as CMIT140.
Delete the CMIT140 user.
Need to use Python if possible
Using the Graphical User Interface (GUI):
Create a user named CMIT140.
Login in as CMIT140.
Add a program to start when CMIT140 logs into the system.
Verify the program starts when CMIT140 logs into the system by logging out and then logging
back in as CMIT140.
Delete the CMIT140 user.
Need to use Python if possible
Solution
Here you can use build in django login system.
1) configure the url roots:
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth import views as auth_views
urlpatterns = [ url(r'^login/$', auth_views.login, name='login'), url(r'^logout/$',
auth_views.logout, name='logout'), url(r'^admin/', admin.site.urls), ]
2) create a simple login template
{% extends 'base.html' %}
{% block title %}
Login{% endblock %}
{% block content %}
Login
{% csrf_token %} {{ form.as_p }} Login
{% endblock %}
3) you can add the simple counter application when a use logs in; trigger this when user logs in
and kill it when user logs out.

More Related Content

More from forladies

Please answer the following at the bottom of the case. ThanksTo ne.pdf
Please answer the following at the bottom of the case. ThanksTo ne.pdfPlease answer the following at the bottom of the case. ThanksTo ne.pdf
Please answer the following at the bottom of the case. ThanksTo ne.pdf
forladies
 
Information Securityfind an article online discussing defense-in-d.pdf
Information Securityfind an article online discussing defense-in-d.pdfInformation Securityfind an article online discussing defense-in-d.pdf
Information Securityfind an article online discussing defense-in-d.pdf
forladies
 
implement the following funtions. myg1 and myg2 are seperate. x and .pdf
implement the following funtions. myg1 and myg2 are seperate. x and .pdfimplement the following funtions. myg1 and myg2 are seperate. x and .pdf
implement the following funtions. myg1 and myg2 are seperate. x and .pdf
forladies
 
I need to fill-in TODOs in .cpp file and in .h file Could some.pdf
I need to fill-in TODOs in .cpp file and in .h file Could some.pdfI need to fill-in TODOs in .cpp file and in .h file Could some.pdf
I need to fill-in TODOs in .cpp file and in .h file Could some.pdf
forladies
 
FACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdf
FACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdfFACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdf
FACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdf
forladies
 
Do you think that Canada’s perceived liberal approach to both immigr.pdf
Do you think that Canada’s perceived liberal approach to both immigr.pdfDo you think that Canada’s perceived liberal approach to both immigr.pdf
Do you think that Canada’s perceived liberal approach to both immigr.pdf
forladies
 
DiscussionApply path-goal theory to a workteamclass situation i.pdf
DiscussionApply path-goal theory to a workteamclass situation i.pdfDiscussionApply path-goal theory to a workteamclass situation i.pdf
DiscussionApply path-goal theory to a workteamclass situation i.pdf
forladies
 
Discuss the importance of identifying norms within a team. Why is cl.pdf
Discuss the importance of identifying norms within a team. Why is cl.pdfDiscuss the importance of identifying norms within a team. Why is cl.pdf
Discuss the importance of identifying norms within a team. Why is cl.pdf
forladies
 
Discuss ethical issues in Human Resource management Discuss eth.pdf
Discuss ethical issues in Human Resource management Discuss eth.pdfDiscuss ethical issues in Human Resource management Discuss eth.pdf
Discuss ethical issues in Human Resource management Discuss eth.pdf
forladies
 

More from forladies (20)

Please answer the following at the bottom of the case. ThanksTo ne.pdf
Please answer the following at the bottom of the case. ThanksTo ne.pdfPlease answer the following at the bottom of the case. ThanksTo ne.pdf
Please answer the following at the bottom of the case. ThanksTo ne.pdf
 
Mitchell sets sail for the Chemiosmotic New World, despite dire w.pdf
Mitchell sets sail for the Chemiosmotic New World, despite dire w.pdfMitchell sets sail for the Chemiosmotic New World, despite dire w.pdf
Mitchell sets sail for the Chemiosmotic New World, despite dire w.pdf
 
Learn the genetics vocabulary (see HW4)] For each of the following ge.pdf
Learn the genetics vocabulary (see HW4)] For each of the following ge.pdfLearn the genetics vocabulary (see HW4)] For each of the following ge.pdf
Learn the genetics vocabulary (see HW4)] For each of the following ge.pdf
 
If nominal GDP is 28000 and the money supply is 7000, what is velocit.pdf
If nominal GDP is 28000 and the money supply is 7000, what is velocit.pdfIf nominal GDP is 28000 and the money supply is 7000, what is velocit.pdf
If nominal GDP is 28000 and the money supply is 7000, what is velocit.pdf
 
Investments in trade securities are always short term investments. T.pdf
Investments in trade securities are always short term investments. T.pdfInvestments in trade securities are always short term investments. T.pdf
Investments in trade securities are always short term investments. T.pdf
 
Information Securityfind an article online discussing defense-in-d.pdf
Information Securityfind an article online discussing defense-in-d.pdfInformation Securityfind an article online discussing defense-in-d.pdf
Information Securityfind an article online discussing defense-in-d.pdf
 
implement the following funtions. myg1 and myg2 are seperate. x and .pdf
implement the following funtions. myg1 and myg2 are seperate. x and .pdfimplement the following funtions. myg1 and myg2 are seperate. x and .pdf
implement the following funtions. myg1 and myg2 are seperate. x and .pdf
 
If two peers share a link in the overlay (they are neighbors in the .pdf
If two peers share a link in the overlay (they are neighbors in the .pdfIf two peers share a link in the overlay (they are neighbors in the .pdf
If two peers share a link in the overlay (they are neighbors in the .pdf
 
I need to fill-in TODOs in .cpp file and in .h file Could some.pdf
I need to fill-in TODOs in .cpp file and in .h file Could some.pdfI need to fill-in TODOs in .cpp file and in .h file Could some.pdf
I need to fill-in TODOs in .cpp file and in .h file Could some.pdf
 
how important is Negative Emotionality to an accounting career plea.pdf
how important is Negative Emotionality to an accounting career plea.pdfhow important is Negative Emotionality to an accounting career plea.pdf
how important is Negative Emotionality to an accounting career plea.pdf
 
How do I know whether miscellaneous expense goes on top or bottom of.pdf
How do I know whether miscellaneous expense goes on top or bottom of.pdfHow do I know whether miscellaneous expense goes on top or bottom of.pdf
How do I know whether miscellaneous expense goes on top or bottom of.pdf
 
Given a 1024 by 1024 RAM block, answer the following questions a) If.pdf
Given a 1024 by 1024 RAM block, answer the following questions  a) If.pdfGiven a 1024 by 1024 RAM block, answer the following questions  a) If.pdf
Given a 1024 by 1024 RAM block, answer the following questions a) If.pdf
 
Fungi were originally classified as plants because they grow in plac.pdf
Fungi were originally classified as plants because they grow in plac.pdfFungi were originally classified as plants because they grow in plac.pdf
Fungi were originally classified as plants because they grow in plac.pdf
 
For the following reaction, define each of the species as acid, base.pdf
For the following reaction, define each of the species as acid, base.pdfFor the following reaction, define each of the species as acid, base.pdf
For the following reaction, define each of the species as acid, base.pdf
 
Find .Notice that t3 becomes simpler when differentiated (where as e.pdf
Find  .Notice that t3 becomes simpler when differentiated (where as e.pdfFind  .Notice that t3 becomes simpler when differentiated (where as e.pdf
Find .Notice that t3 becomes simpler when differentiated (where as e.pdf
 
FACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdf
FACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdfFACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdf
FACTS In the spring of 2001, Kitsmiller purchased a house in Van .pdf
 
Do you think that Canada’s perceived liberal approach to both immigr.pdf
Do you think that Canada’s perceived liberal approach to both immigr.pdfDo you think that Canada’s perceived liberal approach to both immigr.pdf
Do you think that Canada’s perceived liberal approach to both immigr.pdf
 
DiscussionApply path-goal theory to a workteamclass situation i.pdf
DiscussionApply path-goal theory to a workteamclass situation i.pdfDiscussionApply path-goal theory to a workteamclass situation i.pdf
DiscussionApply path-goal theory to a workteamclass situation i.pdf
 
Discuss the importance of identifying norms within a team. Why is cl.pdf
Discuss the importance of identifying norms within a team. Why is cl.pdfDiscuss the importance of identifying norms within a team. Why is cl.pdf
Discuss the importance of identifying norms within a team. Why is cl.pdf
 
Discuss ethical issues in Human Resource management Discuss eth.pdf
Discuss ethical issues in Human Resource management Discuss eth.pdfDiscuss ethical issues in Human Resource management Discuss eth.pdf
Discuss ethical issues in Human Resource management Discuss eth.pdf
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 

Using the Graphical User Interface (GUI)Create a user nam.pdf

  • 1. Using the Graphical User Interface (GUI): Create a user named CMIT140. Login in as CMIT140. Add a program to start when CMIT140 logs into the system. Verify the program starts when CMIT140 logs into the system by logging out and then logging back in as CMIT140. Delete the CMIT140 user. Need to use Python if possible Using the Graphical User Interface (GUI): Create a user named CMIT140. Login in as CMIT140. Add a program to start when CMIT140 logs into the system. Verify the program starts when CMIT140 logs into the system by logging out and then logging back in as CMIT140. Delete the CMIT140 user. Need to use Python if possible Using the Graphical User Interface (GUI): Create a user named CMIT140. Login in as CMIT140. Add a program to start when CMIT140 logs into the system. Verify the program starts when CMIT140 logs into the system by logging out and then logging back in as CMIT140.
  • 2. Delete the CMIT140 user. Need to use Python if possible Solution Here you can use build in django login system. 1) configure the url roots: from django.conf.urls import url from django.contrib import admin from django.contrib.auth import views as auth_views urlpatterns = [ url(r'^login/$', auth_views.login, name='login'), url(r'^logout/$', auth_views.logout, name='logout'), url(r'^admin/', admin.site.urls), ] 2) create a simple login template {% extends 'base.html' %} {% block title %} Login{% endblock %} {% block content %} Login {% csrf_token %} {{ form.as_p }} Login {% endblock %} 3) you can add the simple counter application when a use logs in; trigger this when user logs in and kill it when user logs out.