Useful Links
Computer Science
Web Development
Django Framework
1. Introduction to Django
2. Getting Started
3. Models: The Data Layer
4. Views: The Logic Layer
5. Templates: The Presentation Layer
6. URL Routing
7. Forms
8. The Django Admin
9. Static and Media Files
10. Authentication and Authorization
11. Testing
12. Security
13. Advanced Topics
14. Deployment
15. Extending Django
Testing
Writing and Running Tests
Test Discovery
Running Tests with `manage.py test`
Test Settings
Test Databases
The `TestCase` Class
Structure of a TestCase
Setup and Teardown Methods
`setUp()`
`tearDown()`
`setUpClass()`
`tearDownClass()`
Assertions
Django-specific Assertions
Standard Python Assertions
Test Data
Creating Test Data
Test Fixtures
The Test Client
Simulating Requests
GET Requests
POST Requests
File Uploads
Testing Views and URLs
Testing Authentication
Login and Logout
Permission Testing
Response Testing
Status Codes
Content Testing
Template Testing
Context Testing
Test Fixtures
Loading Fixtures
Creating Fixtures
Fixture Formats
JSON Fixtures
XML Fixtures
YAML Fixtures
Advanced Testing
Testing Models
Model Creation
Model Validation
Model Methods
Testing Forms
Form Validation
Form Rendering
Testing Templates
Template Rendering
Template Tags and Filters
Testing Email
Testing File Uploads
Testing Signals
Test Tools and Utilities
`override_settings`
`TransactionTestCase`
`LiveServerTestCase`
`SimpleTestCase`
Best Practices for Testing
Test Organization
Isolating Tests
Using Factories
Mocking and Patching
Test Coverage
Previous
10. Authentication and Authorization
Go to top
Next
12. Security