Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python [2020/02/06 11:22] – [10. How To Use Python To Make Websites?] garyrust | python [2020/02/23 21:03] (current) – [2. Install Django on a Raspberry Pi 2019 | Django Pi] garyrust | ||
---|---|---|---|
Line 1: | Line 1: | ||
[[Programming_and_Computing|Programming and Computing]] - [[Linux]] \\ | [[Programming_and_Computing|Programming and Computing]] - [[Linux]] \\ | ||
[[Sandbox]] | [[Sandbox]] | ||
+ | |||
+ | ===== - Django installation ===== | ||
+ | **[[python# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== - Install Django on a Raspberry Pi 2019 | Django Pi ===== | ||
+ | **[[python# | ||
+ | https:// | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | ===== - Python Django Web Framework - Full Course for Beginners ===== | ||
+ | **[[python# | ||
+ | https:// | ||
+ | python manage.py runserver 0.0.0.0: | ||
+ | Code: https:// | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | **[[python# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | Learn the Python Django framework with this free full course. Django is an extremely \\ | ||
+ | popular and fully featured server-side web framework, written in Python. Django allows \\ | ||
+ | you to quickly create web apps.\\ | ||
+ | |||
+ | 💻Code: https:// | ||
+ | |||
+ | ⭐️Course Contents ⭐️ \\ | ||
+ | ⌨️ (0:00:00) 1 - Welcome \\ | ||
+ | ⌨️ (0:01:14) 2 - Installing to Get Started \\ | ||
+ | ⌨️ (0:05:02) 3 - Setup your Virtual Environment for Django \\ | ||
+ | ⌨️ (0:14:39) 4 - Create a Blank Django Project \\ | ||
+ | ⌨️ (0:18:54) 5 - Setup Your Code Text Editor \\ | ||
+ | ⌨️ (0:22:27) 6 - Settings \\ | ||
+ | ⌨️ (0:29:58) 7 - Built-In Components \\ | ||
+ | ⌨️ (0:33:57) 8 - Your First App Component \\ | ||
+ | ⌨️ (0:42:34) 9 - Create Product Objects in the Python Shell \\ | ||
+ | ⌨️ (0:46:18) 10 - New Model Fields \\ | ||
+ | ⌨️ (0:52:52) 11 - Change a Model \\ | ||
+ | ⌨️ (0:59:27) 12 - Default Homepage to Custom Homepage \\ | ||
+ | ⌨️ (1:04:48) 13 - URL Routing and Requests \\ | ||
+ | ⌨️ (1:10:23) 14 - Django Templates \\ | ||
+ | ⌨️ (1:16:50) 15 - Django Templating Engine Basics \\ | ||
+ | ⌨️ (1:24:00) 16 - Include Template Tag \\ | ||
+ | ⌨️ (1:26:49) 17 - Rendering Context in a Template \\ | ||
+ | ⌨️ (1:33:21) 18 - For Loop in a Template \\ | ||
+ | ⌨️ (1:37:01) 19 - Using Conditions in a Template \\ | ||
+ | ⌨️ (1:42:17) 20 - Template Tags and Filters \\ | ||
+ | ⌨️ (1:48:59) 21 - Render Data from the Database with a Model \\ | ||
+ | ⌨️ (1:59:55) 22 - How Django Templates Load with Apps \\ | ||
+ | ⌨️ (2:06:50) 23 - Django Model Forms \\ | ||
+ | ⌨️ (2:14:16) 24 - Raw HTML Form \\ | ||
+ | ⌨️ (2:25:33) 25 - Pure Django Form \\ | ||
+ | ⌨️ (2:35:30) 26 - Form Widgets \\ | ||
+ | ⌨️ (2:41:29) 27 - Form Validation Methods \\ | ||
+ | ⌨️ (2:48:59) 28 - Initial Values for Forms \\ | ||
+ | ⌨️ (2:51:42) 29 - Dynamic URL Routing \\ | ||
+ | ⌨️ (2:54:26) 30 - Handle DoesNotExist \\ | ||
+ | ⌨️ (2:56:24) 31 - Delete and Confirm \\ | ||
+ | ⌨️ (2:58:24) 32 - View of a List of Database Objects \\ | ||
+ | ⌨️ (3:00:00) 33 - Dynamic Linking of URLs \\ | ||
+ | ⌨️ (3:01:17) 34 - Django URLs Reverse \\ | ||
+ | ⌨️ (3:03:10) 35 - In App URLs and Namespacing \\ | ||
+ | ⌨️ (3:07:35) 36 - Class Based Views - ListView \\ | ||
+ | ⌨️ (3:10:45) 37 - Class Based Views - DetailView \\ | ||
+ | ⌨️ (3:15:38) 38 - Class Based Views - CreateView and UpdateView \\ | ||
+ | ⌨️ (3:21:23) 39 - Class Based Views - DeleteView \\ | ||
+ | ⌨️ (3:24:02) 40 - Function Based View to Class Based View \\ | ||
+ | ⌨️ (3:27:15) 41 - Raw Detail Class Based View \\ | ||
+ | ⌨️ (3:30:31) 42 - Raw List Class Based View \\ | ||
+ | ⌨️ (3:33:32) 43 - Raw Create Class Based View \\ | ||
+ | ⌨️ (3:26:03) 44 - Form Validation on a Post Method \\ | ||
+ | ⌨️ (3:37:58) 45 - Raw Update Class Based View \\ | ||
+ | ⌨️ (3:41:13) 46 - Raw Delete Class Based View \\ | ||
+ | ⌨️ (3:42:17) 47 - Custom Mixin for Class Based Views \\ | ||
+ | ===== - Raspberry Pi + Django Home Server ===== | ||
+ | **[[python# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | What are the requirements? | ||
+ | Basic Python \\ | ||
+ | Basic Django \\ | ||
+ | Need access to a Home/Local Network (firewalls could cause issues) \\ | ||
+ | Recommended Equipment (see video) \\ | ||
+ | |||
+ | What am I going to get from this course? \\ | ||
+ | Local Networked Server using Raspberry Pi 3 Model B \\ | ||
+ | Django-powered web application \\ | ||
+ | Setup Apache2 on a Linux system (useful for other Linux systems) \\ | ||
+ | Create a Home Automation Hub with a Raspberry Pi and Python \\ | ||
+ | Install an OS on a Raspberry Pi (OS: Raspbian Jessie; a Linux Debian distro for Pi) \\ | ||
+ | |||
+ | What is the target audience? \\ | ||
+ | Anyone interested in Home Automation + Internet of Things (iot) \\ | ||
+ | Entrepreneurs \\ | ||
+ | Python/ | ||
+ | Beginners to Advanced Technical Users (we do it all step-by-step) \\ | ||
+ | |||
+ | ===== - Python Django Crash Course ===== | ||
+ | **[[python# | ||
+ | **[[https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | [[https:// | ||
+ | If you want to change the server’s IP, pass it along with the port.\\ | ||
+ | So to listen on all public IPs (useful if you want to show off your\\ | ||
+ | work on other computers), use:\\ | ||
+ | $python manage.py runserver 127.0.0.1: | ||
+ | For more details [[https:// | ||
+ | ===== - Welcome to Fabric! ===== | ||
+ | **[[python# | ||
+ | http:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | ===== - HOWTO Use Python in the web ===== | ||
+ | **[[python# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | **[[python# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | ===== - Programming Python, 3rd Edition ===== | ||
+ | **[[python# | ||
+ | {{obj: | ||
+ | ===== - Writing your first Django app, part 1 ===== | ||
+ | **[[python# | ||
+ | http:// | ||
+ | {{obj: | ||
+ | |||
===== - Python (programming language) ===== | ===== - Python (programming language) ===== | ||
Line 76: | Line 225: | ||
<iframe width=" | <iframe width=" | ||
</ | </ | ||
- | ===== - Python Django Crash Course ===== | ||
- | **[[python# | ||
- | **[[https:// | ||
- | < | ||
- | <iframe width=" | ||
- | </ | ||
- | [[https:// | ||
- | If you want to change the server’s IP, pass it along with the port.\\ | ||
- | So to listen on all public IPs (useful if you want to show off your\\ | ||
- | work on other computers), use:\\ | ||
- | $python manage.py runserver 127.0.0.1: | ||
- | For more details [[https:// | ||
- | |||
- | ===== - Writing your first Django app, part 1 ===== | ||
- | **[[python# | ||
- | http:// | ||
- | {{obj: | ||