PyScript and Django: Basic PyScript Frontend and DOM manipulations | PyScript tutorial

This is a very simple project built with PyScript and Django. Django on the backend side, and Pyscript as the frontend. The main idea of the video is to show how to use only Python both for backend and frontend. I wanted to show how to make AJAX (asynchoronous) GET and POST requests with Pyscript to Django project, and how to manipulate DOM with Pyscript. The frontend of the project is written with Pyscript. When i'm clicking on the green button ... Pyscript sends a GET request to my Flask application and gets a random number from 1 to 10... When I click on a card... Pyscript sends a POST request to the Django app and gets the float version of the sent numbers. And again the video is about how to use Pyscript to send GET and POST requests to Flask, and how use Pyscript to manipulate with DOM. Follow me @: Telegram: https://t.me/red_eyed_coder_club Twitter:   / codereyed   Facebook: https://fb.me/redeyedcoderclub === 📎 The source code is available via Patreon ===   / 68004987   Timecodes: 00:00 - Demo and description of the Pyscript Django project, attaching Python module to HTML template. 01:09 - Description of the basic Django project. 02:21 - Adding PyScript to Django project as a static file 03:40 - Basic example of DOM manipulations with PyScript (Pyscript onclick event handler and event listener). 06:20 - Sending GET requests with PyScript, using of pyfetch() to send requests to Django (frontend, PyScript side) 13:24 - Accepting a GET request from PyScript (backend, Django side) 15:04 - Checking a request's headers to determine AJAX request 16:15 - Sending POST request with PyScript to Django (frontend, PyScript side) 20:32 - Accepting a POST request from PyScript on Django side 23:02 - Using CSRF token with Pyscript 24:33 - Passing CSRF token with headers to Django 24:49 - Refactoring of header's definition ** Other Django Tutorials ** Django CSRF tokens from cookies:    • Django CSRF Token Tutorial: Getting CSRF t...   Deploy Django on server:    • Django Deployment: How to deploy Django ap...   Deploy Django on PythonAnyWhere:    • PythonAnyWhere Django Deployment: How to d...   PyScript and Django: Basic PyScript Frontend and DOM manipulations | PyScript tutorial    • PyScript and Django: Basic PyScript Fronte...   #pyscript #django #redeyedcoderclub

PyScript and Django: How to submit form and validate on Django side | PyScript tutorial
▶︎

PyScript and Django: How to submit form and validate on Django side | PyScript tutorial

Watch this if everything feels too much (gentle comfort for tired women)
▶︎

Watch this if everything feels too much (gentle comfort for tired women)

Python Django Web Framework - Full Course for Beginners
▶︎

Python Django Web Framework - Full Course for Beginners

Django Tutorial: Run Multi-Node Django for Time Series Data with TimescaleDB, Celery and more.
▶︎

Django Tutorial: Run Multi-Node Django for Time Series Data with TimescaleDB, Celery and more.

God Says:"I JUST CONFIRMED — ONLY YOU CAN SEE THIS LETTER"/God Message Now/God Message
▶︎

God Says:"I JUST CONFIRMED — ONLY YOU CAN SEE THIS LETTER"/God Message Now/God Message

Vue.js Crash Course
▶︎

Vue.js Crash Course

Understanding HTML & Building Your First Web Page
▶︎

Understanding HTML & Building Your First Web Page

ASMR Addictive Fast Tapping Collection For Deep Sleep & Anxiety Relief (No Talking) — 2.5 Hours
▶︎

ASMR Addictive Fast Tapping Collection For Deep Sleep & Anxiety Relief (No Talking) — 2.5 Hours

Full Flask Course For Python - From Basics To Deployment
▶︎

Full Flask Course For Python - From Basics To Deployment

Django & React Web App Tutorial - Authentication, Databases, Deployment & More...
▶︎

Django & React Web App Tutorial - Authentication, Databases, Deployment & More...

Python In The Browser! PyScript First Look
▶︎

Python In The Browser! PyScript First Look

But what is quantum computing?  (Grover's Algorithm)
▶︎

But what is quantum computing? (Grover's Algorithm)

APIs for Beginners - How to use an API (Full Course / Tutorial)
▶︎

APIs for Beginners - How to use an API (Full Course / Tutorial)

Learn Alpine.js in practice #2: Alpine js project - TODO app | Alpine.js course
▶︎

Learn Alpine.js in practice #2: Alpine js project - TODO app | Alpine.js course

Deep Dive into LLMs like ChatGPT
▶︎

Deep Dive into LLMs like ChatGPT

Django Deployment: How to deploy Django app to server using Nginx + Uvicorn | Django deploy tutorial
▶︎

Django Deployment: How to deploy Django app to server using Nginx + Uvicorn | Django deploy tutorial

Build a COMPLETE React Admin Dashboard App | React, Material UI, Data Grid, Light & Dark Mode
▶︎

Build a COMPLETE React Admin Dashboard App | React, Material UI, Data Grid, Light & Dark Mode

Learn Express JS In 35 Minutes
▶︎

Learn Express JS In 35 Minutes

Deploy Django into Production with Kubernetes, Docker, & Github Actions. Complete Tutorial Series
▶︎

Deploy Django into Production with Kubernetes, Docker, & Github Actions. Complete Tutorial Series

Learn Django by Building an Online Marketplace – Python Tutorial for Beginners
▶︎

Learn Django by Building an Online Marketplace – Python Tutorial for Beginners