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
Getting Started
Installation
Python and Pip Setup
Installing Python
Installing Pip
Verifying Installation
Virtual Environments
Purpose of Virtual Environments
Creating a Virtual Environment
Activating and Deactivating
Installing Django
Using pip to Install Django
Verifying Django Installation
Creating a Project
The `django-admin startproject` Command
Syntax and Usage
Project Naming Conventions
Project Structure Overview
Purpose of `manage.py`
Role of `settings.py`
Function of `urls.py`
Purpose of `wsgi.py`
Purpose of `asgi.py`
Additional Project Files
Creating an App
The `python manage.py startapp` Command
Syntax and Usage
App Naming Conventions
Project vs. App Philosophy
Definition of a Project
Definition of an App
Organizing Multiple Apps
App Structure Overview
`apps.py`
`models.py`
`views.py`
`admin.py`
`tests.py`
`migrations/`
`templates/` and `static/` Folders
The Development Server
Running `python manage.py runserver`
Default Port and Host
Customizing Port and Host
Auto-Reloading and Debug Mode
Stopping the Server
Previous
1. Introduction to Django
Go to top
Next
3. Models: The Data Layer