Getting Started
Requirements
- Python 3.6 & up
- Virtual Environment (pipenv or virtualenv)
Recommended Prerequisites
- Coding with macOS (course)
- 30 Days of Python (project)
- Getting Started with HTML & CSS (project)
- Bootstrap Basics (project)
1. Setup your System
- Windows: https://kirr.co/6r8wr9
- Mac: https://kirr.co/386c7f
- Linux: https://kirr.co/c3uvuu
2. Create Virtual Environment & Install Django
cd /path/to/dev/folder
mkdir try_django
cd try_django
pipenv --python 3.6 install django==2.2
pipenv shell
Don't have pipenv? Check out this guide
3. Create Django Project
cd /path/to/dev/folder
mkdir src
cd src
django-admin startproject try_django .
4. Setup Project in Sublime Text
I've used Sublime Text for a long time. This is optional but recommended as you work through the videos. Download it on https://www.sublimetext.com/
Reference & Guides
- Getting started with CFE
- System Setup
- Windows: https://kirr.co/6r8wr9
- Mac: https://kirr.co/386c7f
- Linux: https://kirr.co/c3uvuu
- Blank Django Project
- Official Code Repo
Code by Lesson
1 - 4 no reference code
12 - Render Context in Templates
14 - Rendering Any Kind of Template
15 - Template Context Processors
21 - Dynamic URL-based Lookups
22 - Handling Dynamic URL Errors
24 - A New Database Lookup Value
35 - Saving Data from a Django Form
39 - Associate Blog Post to a User with Foreign Keys
41 - Update View with Model Form
42 - Better Validation on Update Views
47 - An Included Template for Consistent Design
48 - Publish Date, Timestamp & Updated
49 - Model Managers and Custom QuerySets
50 - Published and Draft Posts
51 - Static Files and Uploading Files