Reading after today's homework:
Week 7, Day 1
Mon 15 June 2015Week 7 Overview
Fri 12 June 2015Plan for the week
- Monday: Models in detail. Field types, many-to-many relationships, QuerySets, Q objects, updating and deleting, aggregation, custom managers, PostgreSQL. django-extensions library.
- Tuesday: Templates in detail. HTML, CSS, static files, tags, filters, inheritance, blocks, humanization, Bootstrap.
- Wednesday: Views in detail. Core exceptions, the request object, class- based views vs function-based views, generic views, HTTP status codes, cookies.
- Thursday: Forms in detail. Model forms, non-model forms, HTML 5 field types, formsets, custom form builders, custom validation, uploading files.
Learning objectives
- Expand upon current knowledge to build new Django applications and features
- Determine which model field types to use to represent data
- Understand the difference between 1:1, 1:n, and n:n relationships
- Distinguish when to use each relationship type in modeling data
- Translate English descriptions of data queries into Django ORM queries
- Use PostgreSQL to store Django data
- Build new methods on query managers
- Use django-extensions to make development easier
- Extrapolate on the example of django-extensions to use other Django plugins
- Build structured documents using HTML
- Make use of Bootstrap and hand-written CSS to style your application
- Organize templates for reuse
- Show the functions of the request object in Views
- Use exceptions to handle common web response
- Explain the difference between function-based views and class-based views
- Select generic views from Django to speed development
- Use cookies to maintain state
- Summarize what standard HTTP status codes mean
- Select the right HTTP status code for a response
- Build robust forms for receiving and validating data
- Expand on the built-in validation to make custom data validations
Week 6, Day 4
Thu 11 June 2015Sample application from class today:
Homework:
- Django MovieLens - day 3
Documentation links:
- How to add attributes to users - read this to hook Rater to User
- Django - built-in auth views
- Django-Bootstrap
- Full Stack Python - Django
- Design starter kit
Reading and watching:
- Read parts 5 and 6 of the Django tutorial.
- You may want to watch Getting Started With Django.ΒΈ
Week 6, Day 3
Wed 10 June 2015Sample application from class today:
Homework:
- Django MovieLens - day 2
Documentation links:
Reading:
Week 6, Day 2
Tue 09 June 2015Sample application from class today:
Homework:
Reading:
Week 6, Day 1
Mon 08 June 2015Notebooks from class today:
Datasets we used:
Homework:
Reading:
- Read section 1 of the Django tutorial. You do not have to follow along, but if you do, make sure you create a virtualenv first and run
pip install django
.
- Read section 1 of the Django tutorial. You do not have to follow along, but if you do, make sure you create a virtualenv first and run
Week 6 Overview
Sat 06 June 2015Plan for the week:
- Monday: K-Means Clustering; Mean Shift Clustering if we have time; choosing the right machine learning technique.
- Tuesday: Begin learning about Django; set up your first Django project; learn how to store objects in a database; see the Django admin.
- Wednesday: Learn how to customize the Django admin; learn about hooking URLs to behavior with views and templates; learn basic HTML.
- Thursday: Continue learning HTML; learn how to create forms; learn how to install a CSS framework for use.
Learning objectives:
- Machine Learning
- Recalling how K-Means clustering works
- Using the Scikit-Learn clustering algorithms
- Selecting an appropriate machine learning algorithm
- Django
- Creating a new Django application
- Translating Python objects to database tables
- Identifying commonalities between Pandas methods and database methods
- Explaining what a database is
- Explaining what a model is
- Using the Django admin
- Structuring your Django admin to reflect your data
- Creating regular expressions to map URLs to views
- Explaining what a view is
- Designing simple views
- Remembering and using basic HTML
- Extrapolating from basic HTML how to create templates
- Creating forms
- Distinguishing when to use GET vs POST
- Using a CSS framework
To Read for Monday
Fri 05 June 2015Week 5, Day 4
Thu 04 June 2015Notebooks from class today:
Datasets we used:
Homework: