N6XRE DokuWiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python [2020/02/06 11:58] – [1. How To Use Python To Make Websites?] garyrustpython [2020/02/23 21:03] (current) – [2. Install Django on a Raspberry Pi 2019 | Django Pi] garyrust
Line 2: Line 2:
 [[Sandbox]] [[Sandbox]]
  
 +===== - Django installation ===== 
 +**[[python#top|Top]]** \\
 +https://tutorial.djangogirls.org/en/django_installation/ - https://tutorial.djangogirls.org/en/deploy/ - https://www.pythonanywhere.com/ \\
 +<html>
 +<iframe width="60%" height="800" src="https://tutorial.djangogirls.org/en/django_installation/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 +</html> \\
 +
 +
 +===== - Install Django on a Raspberry Pi 2019 | Django Pi ===== 
 +**[[python#top|Top]]** \\
 +https://www.youtube.com/playlist?list=PLM30lSIwxWOijsnA2Fr1PPGkOiCaDaRod \\
 +https://youtu.be/jSZWwiBPp3U \\
 +<html>
 +<iframe width="800" height="450" src="https://www.youtube.com/embed/jSZWwiBPp3U" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>\\
 +===== - Python Django Web Framework - Full Course for Beginners =====
 +**[[python#top|Top]]** \\
 +https://docs.djangoproject.com/en/3.0/ \\
 +python manage.py runserver 0.0.0.0:8001 \\
 +Code: https://github.com/codingforentrepreneurs/Try-Django \\
 +https://www.youtube.com/playlist?list=PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW \\
 +<html>
 +<iframe width="800" height="450" src="https://www.youtube.com/embed/videoseries?list=PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>\\
 + 
 +**[[python#top|Top]]** \\
 +https://youtu.be/F5mRW0jo-U4 - Downloaded \\
 +<html>
 +<iframe width="800" height="450" src="https://www.youtube.com/embed/F5mRW0jo-U4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>\\
 +
 +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://github.com/codingforentrepreneurs/Try-Django \\
 +
 +⭐️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#top|Top]]** \\
 +https://youtu.be/NufWIkVQT44 \\
 +<html>
 +<iframe width="800" height="450" src="https://www.youtube.com/embed/NufWIkVQT44" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html> \\
 +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/Django Users \\
 +Beginners to Advanced Technical Users (we do it all step-by-step) \\
 +
 +===== - Python Django Crash Course ===== 
 +**[[python#top|Top]]** \\
 +**[[https://www.youtube.com/watch?v=D6esTdOLXh4|Python Django Crash Course]]** \\
 +<html>
 +<iframe width="800" height="450" src="https://www.youtube.com/embed/D6esTdOLXh4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>\\
 +[[https://stackoverflow.com/questions/23359389/django-port-changing/23359689#23359689|Django port changing]] - I'm at 22:01 / 1:08:10 on Win7\\
 +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:8002\\
 +For more details [[https://docs.djangoproject.com/en/dev/intro/tutorial01/|click here]]. - server runs OK.
 +===== - Welcome to Fabric! ===== 
 +**[[python#top|Top]]** \\
 +http://www.fabfile.org/ \\
 +<html>
 +<iframe width="60%" height="800" src="http://www.fabfile.org/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 +</html> \\
 ===== -  HOWTO Use Python in the web ===== ===== -  HOWTO Use Python in the web =====
 **[[python#top|Top]]** \\ **[[python#top|Top]]** \\
Line 14: Line 142:
 <iframe width="60%" height="800" src="https://www.probytes.net/blog/use-python-make-websites/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> <iframe width="60%" height="800" src="https://www.probytes.net/blog/use-python-make-websites/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 </html> \\ </html> \\
 +===== -  Programming Python, 3rd Edition =====
 +**[[python#top|Top]]** \\
 +{{obj:noreference 60%,800 > http://n6xre.duckdns.org:8080/dokuwiki/Music/Ebooks/Programming_Python,_3rd_Edition/O'Reilly%20-%20Programming%20Python,%203rd%20Ed/O'Reilly%20-%20Programming%20Python,%203rd%20Ed.pdf}} \\
 +===== -  Writing your first Django app, part 1 =====
 +**[[python#top|Top]]** \\
 +http://n6xre.duckdns.org:8080/dokuwiki/pdf/Writing_your_first_Django_app_part_1.pdf \\
 +{{obj:noreference 60%,800 > http://n6xre.duckdns.org:8080/dokuwiki/pdf/Writing_your_first_Django_app_part_1.pdf}} \\
 +
 +
 ===== -  Python (programming language) ===== ===== -  Python (programming language) =====
 **[[python#top|Top]]** \\ **[[python#top|Top]]** \\
Line 88: Line 225:
 <iframe width="560" height="315" src="https://www.youtube.com/embed/M8Lxu7miiyk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <iframe width="560" height="315" src="https://www.youtube.com/embed/M8Lxu7miiyk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 </html>\\ </html>\\
-===== - Python Django Crash Course =====  
-**[[python#top|Top]]** \\ 
-**[[https://www.youtube.com/watch?v=D6esTdOLXh4|Python Django Crash Course]]** \\ 
-<html> 
-<iframe width="560" height="315" src="https://www.youtube.com/embed/D6esTdOLXh4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 
-</html>\\ 
-[[https://stackoverflow.com/questions/23359389/django-port-changing/23359689#23359689|Django port changing]] - I'm at 22:01 / 1:08:10 on Win7\\ 
-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:8002\\ 
-For more details [[https://docs.djangoproject.com/en/dev/intro/tutorial01/|click here]]. - server runs OK. 
- 
-===== -  Writing your first Django app, part 1 ===== 
-**[[python#top|Top]]** \\ 
-http://n6xre.duckdns.org:8080/dokuwiki/pdf/Writing_your_first_Django_app_part_1.pdf \\ 
-{{obj:noreference 60%,800 > http://n6xre.duckdns.org:8080/dokuwiki/pdf/Writing_your_first_Django_app_part_1.pdf}} \\ 
  
  
QR Code
QR Code python (generated for current page)