Grace Hopper Center

CSC 221 Weekly Assignments: Week 14

CSC 221


Overview

This week we begin our study of web application development with Django.

Friday, December 5th

Homework

Chris is out today, and we have a 2-hour delay, so we'll make our best effort to follow through on his plans for today.

During today's class, you will be work on the Sockets For Two-Way Chat activity in Chapter 10 Exercise Set 0: Chapter Review. You will need to pair up for this activity, since as the saying goes, It takes two to tango. :-)

Homework

Watch the first two videos from Lesson 6: Basic SQL:

  • How Databases Work
  • Introduction to Structured Query Language (SQL)

Be sure to take notes in your git repos and come to class next Tuesday ready for a keep me honest quiz on the material.

Wednesday, December 3rd

Classwork

We'll start class with the promised integrity check mini-quiz on the videos you watched for homework. Then we'll have a brief discussion of what a flipped classroom is and the role we hope our short quizzes at the beginning of class periods will play in that learning environment, and why it is so important for you to do your homework.

We will then experiment with a few of the examples presented in the lectures.

  1. You'll see a demo of the telnet [host] 80 process sending the GET [host] HTTP/1.0 command.
  2. Using these slightly modified versions of simplest browser and simplest web server, we will experiment with them on our own machines in class.

Monday, December 1st

Classwork

During class today we will setup a local Django installation using these Setting Up Your Local Workstation for Django Development instructions. I will explain what each of these steps do as we do them together.

Homework

Complete the first 6 videos in Lesson 14: How Dynamic Web Content Works from Django for Everybody.

By complete we mean:

  1. Watch the first six video lectures:
    1. The 'Big Picture' of a Django Application
    2. Web Applications and the Request/Response Cycle
    3. Using Sockets to Make Network Connections in Python
    4. Exploring the HyperText Transfer Protocol
    5. Building a Simple Web Browser in Python
    6. Building a Simple Web Server in Python
  2. Take notes!

Put your notes in a Markdown file named DynamicWebContent.md in your git repo.

As you watch the lectures, be sure to take notes on:

  • the HTTP request/response cycle
  • what a socket is
  • the RFC process and the democracy of the web
  • the parts of a Uniform Resource Locator (URL)
  • the most common TCP port numbers

Evaluation

You will have a very short quiz on the homework material when you arrive in class on Wednesday. This quiz and your notes will be weighted equally in determining your grade.