Django Course Content
Introducion to Django
- Introduction
- About Django
- Django Components
- Installing & configuring Django Components
- Django Pre-Requisites
- Downloading & Installing Django
- Choosing a Database
- Creating a New Project
Module2: Generating Simple Django Views
- Generating Simple Django Views
- About View Functions
- Using Django's Http Response Class
- Understanding Http Request Objects
- Using Query Dict Objects
Module3: Configuring URL conf's
- Configuring URL conf's
- About URL conf
- Regular Expressions
- Expression Examples
- Simple URL Conf Examples
- Using Multiple URL Conf's
- Passing URL Arguments
Module4: Django Templates
- About Templates
- Templates Fundamentals
- Creating Template Objects
- Loading Template Files
- Filling in Template Content (Context Objects)
- Template Filters Template Tags
- More on For Loops
- Template Inheritance
- Easy Rendering of Templates
- Request Context Processors
- Global Context Processors
Module5: Forms
- Getting Data From the Request Object
- A Simple Form-Handling Example
- Making a Contact Form
- Tying Form objects Into View
Module6: Database Models With Django
- About Database Models
- Configuring Django for Database Access
- Understanding Django Apps
- About Django Models
- Defining Django Models
- Understanding Model Fields & Options
- Table Naming Conventions
- Creating A Django Model
- Adding the App to Yours Project
- Validating the App
- Generating & Reviewing the SQL
- Adding Data to the Model
- Primary Keys and Model
- Simple Data Retrieval Using a Model
- Understanding Query Sets
- Applying Filters
- Specifying Field Lookups
- Lookup Types
- Slicing Query Set Methods
- Deleting Records
- Using Q Objects
- Creating Forms from Models
Module7: Using the Django Admin Interface
- Using the Django Admin Interface
- Enabling the Admin Interface
- Creating an Admin User
Module8: Access Control With Sessions and Users
- Access Control With Sessions and Users
- Cookies & Django
- The Django Session Framework
- Sessions in Views
- Session Tuning
- Installing Django User Authentication
- Using Authentication in Views
- Login and Logout
- Building yours Own Login/Logout Views
- Authentication Decorators
- Adding & Deactivating Users
- Asynchronous Messaging
- Managing Permission
Module9: Generic Views
- Simple Generic Views
- Using Generic Redirects
- Other Generic Views
- Create/Update Generic Views
Module10: Deploying Django Applications
- Deploying Django Application
Module11: Django Case Studies
- Django Case Studies.
Python
- Python
- How to install Python
- Packages
- How to install packages
- Python 3
- How to use Python
- The interpreter
- Scripting mode
- Print statement
- Values and its types
- Variables
- Keywords
- Operators
- Integers
- Floats
- Booleans
- 11. Control statements
- If statements
- Indentation
- If-Else statement
- For loops
- While loops
- Continue
- Break
- Pass
- Functions
- Simple example
- Def
- Body
- Return
- How to call a function
- Everything is an object
- Scope
- Functions within functions
- Global keyword
- Default arguments
- More on default arguments
- Docstring
- Lambda functions
- Data types
- Strings
- Everything can be turned into a string!
- String formatting
- Split
- UPPER and lowercase
- join
- Lists
- Accessing elements
- Slicing and adding
- Multiplication
- Lists are mutable
- Copying a list
- Functions modify lists
- Why does the list change, but variables do not?
- More control over lists
- Looping over elements
- Map
- Filter
- List comprehensions
- Implementing map using list comprehensions
- Tuples
- Tuples are immutable
- Packing and unpacking
- Functions with multiple return values
- Dictionaries
- De?ning a dictionary
- No duplicate keys
- Access
- All keys, values or both
- Small exercise
- Sets
- Set comprehensions
- Importing a module
- Importing as
- In case we only need some part of a module
- Import all from module
- Writing your own modules
- Only running code when main ?le
- The ?le object
- Opening a ?le
- with open() as f
- Reading ?les
- Writing to ?le
- More writing examples
- De?ning our own objects
- Object Oriented Programming
- Simplest example
- Initializing an object
- Self
- Another example
- Class attributes
- Class hierarchy through
- Inheritance
- Base methods
- Example
- Implementing Rational numbers
- Greatest common divisor
- Representing your class: Operator overloading
- Operator overloading: adding two Rational
- Operator overloading: Comparing
- More on Operator Overloading
- Exception handling
- A naked except
- Try Except Else
- Raise
- Finally