Tuesday¶
Objectives¶
Review Django Views, both functional and class based
Readings¶
Django Testing¶
- Django Testing (familiarize yourself both with writing and running tests and with the tools Django provides for testing.
- Using Dynamic Test Fixtures with Factory Boy (in particular pay attention to using Factory Boy with Django)
- Django Migrations
Django Views¶
For your tasks this week, you’ll need to create a number of views in Django. Please refer to the following readings for help in answering your quesitons:
- Writing Views in Django
- An overview of Django’s Class-Based Views
- Full API Documentation for Class-Based Views
You may also wish to refer to the following materials for help in writing templates in Django:
- An overview of the Django Template Language
- Django Templates Configuration (including configuration of template lookup and engine selection)
- The built-in template tags and filters in Django
- Creating your own custom template tags and filters
- Read about using Django’s Authentication Systems
- Writing Views in Django
- (Read ONLY! Don’t do this yet) Deploying a Django App to Amazon AWS
- (Read ONLY! Do not do yet!) Creating a Database Server
- Be aware of the security controls for Amazon RDS
- In particular, learn about RDS Security Groups and controlling access between RDS and EC2
Review¶
- Quick Sort implementations
- Django Views
Concepts¶
- How to choose a CBV
- How to detangle the CBV Inheritance Tree