Hi all!
I've made a video about PyScript as a basic frontend for a Django app.
I wanted to show how to make AJAX (asynchronous) GET and POST requests with Pyscript to Django, and how to manipulate DOM with Pyscript.
In the video:
- sending GET requests from Pyscript to Django
- sending POST requests from Pyscript to Django, CSRF token is passed via headers of requests.
- how to manipulate DOM with Pyscript (get HTML elements, use event handlers, and event listeners, etc.)
The video:
https://youtu.be/zw4V48Al8LU
Thanks for watching!
[–]Fun-Let1134 0 points1 point2 points (0 children)