Reading material referenced:
The course textbooks "HTML and CSS design" [1], "Django book" [2]
For the midterm exam the students should:
- Know the HTML tags described in class
- Know how to define CSS rules
- Know how to refer to CSS stylesheets in HTML code
- Know the difference between block and inline tags
- Be able to use the HTML tags together with CSS rules to create a layout (Ch. 15 in [1]), (using div blocks, among others)
- Know how to create fixed and liquid layouts and their advantages/weaknesses
- Know the examples of the use of 960.GS grid layout described in textbook [1]
- Be able to draw a wireframe mock-up of a webpage based on HTML/CSS code and vice versa
- Know how Model View Controller (MVC) architecture is implemented in Django and what files are responsible for it (Ch 5.2 in [2])
- Know the advantages of using MVC
- Know an example of a Django project directory structure based on the example uploaded to TRACS
- Know what needs to be done to add a webpage to a Django project (i.e. which files need to be created or edited and how)
- Know the typical content of model.py, views.py and urls.py
- Be able to recreate Figure 3-1 (how Django processes a request) and be able to describe it
- Know about the difference between GET and POST methods of HTTP
- Know simple examples of creating dynamic page using Django
- Know the purpose of Django templates and the design philosophy of the template language (related to MVC)
- Given template code, be able to describe what it would do (based on the submission form example described in class)