Django Tutorial: Run Multi-Node Django for Time Series Data with TimescaleDB, Celery and more.
HTML-код
- Опубликовано: 28 июл 2024
- Run many iterations of Django across Docker Compose or Raspberry Pis to handle large amounts of time series data.
Topics:
✅ Python & Django
✅ Setup Django Project
✅ Integrate Self-Hosted TimescaleDB with Django
✅ Integrate Timescale.com Cloud with Django
✅ Use TimescaleDB with django-timescaledb
✅ Integrate Django & Celery
✅ Django Celery Task to Generate Fake Data
✅ Using a Beat Server to run tasks on a schedule (e.g. every 5 seconds)
✅ Learn how to use Celery Task Queues for Individual Worker Nodes
✅ Run multiple Django instances through Docker Compose to emulate a multi-node production environment
✅ Docker Compose Watch to Auto Refresh Django Container
✅ Multi-Node Django+Celery Running on Docker Compose
✅ Configure Raspberry Pi OS for local network connection
✅ Use Ansible to Configure Pi Cluster for Django
✅ Integrate Production TimescaleDB across Docker Compose, Raspberry PIs, and a local Django project.
✅ TimescaleDB Queries and API Responses
✅ Visualizing Data with TimescaleDB and Chart.js
✅ Customize Python Decouple for multiple dotenv Environment Variable files
💽 Code: github.com/codingforentrepren...
🕹️ Links:
- Blog Post for Dockerfile: cfe.sh/blog/deploy-django-on-...
- django-timescaledb package: github.com/jamessewell/django...
If you like this course, consider:
- SaaS Foundations -- Learn about integrating Django with Stripe, User Permissions, GitHub Actions, and much more: • Python Tutorial: Build...
- Build Full Stack Web Apps in Pure Python with Reflex - A great challenge would be to use Reflex as a replacement for Next.js: • Build Full Stack Web A...
Thank you to Timescale for sponsoring this course - sign up at www.timescale.com/?...
🚀 Enroll now on cfe.sh/enroll 🚀
00:00:00 - Welcome
00:02:44 - Demo
00:07:12 - Requirements
00:10:15 - Setup Django Project
00:16:03 - Priority Dotenv Helper for Python Decouple
00:22:55 - TimescaleDB via Docker Compose
00:34:42 - Integrate TimescaleDB with Django
00:45:51 - Create a TimescaleDB model with django-timescaledb
00:53:17 - Running Code outside the Request Response Cycle with Django and Celery
00:57:33 - Integrate Django & Celery
01:04:50 - Django Celery Task to Generate Fake Data
01:13:45 - Auto Schedule Tasks with Celery Beat
01:19:12 - Celery Task Queues for Individual Worker Nodes
01:29:52 - Django Project within Docker Compose
01:41:54 - Docker Compose Watch to Auto Refresh Django Container
01:47:02 - Multi-Node Celery Running on Docker Compose
01:56:00 - Configure Raspberry Pi OS for your Pi Cluster
02:03:01 - Verify Pi Installation and Create Ansible Inventory File
02:09:42 - Using Ansible to Configure our Pi Cluster for Django
02:41:10 - Production TimescaleDB
02:52:24 - Timescale DB Queries and API Responses
03:05:11 - Additional TimescaleDatabase Queries
03:13:05 - Visualizing Average Temperature Over Time
03:17:18 - Visualizing Average Temperature Per Node Over Time
03:23:36 - Thank you and next steps
Thanks for watching!
Code: github.com/codingforentrepreneurs/django-iot-with-timescaledb
Chapters:
00:00:00 - Welcome
00:02:44 - Demo
00:07:12 - Requirements
00:10:15 - Setup Django Project
00:16:03 - Priority Dotenv Helper for Python Decouple
00:22:55 - TimescaleDB via Docker Compose
00:34:42 - Integrate TimescaleDB with Django
00:45:51 - Create a TimescaleDB model with django-timescaledb
00:53:17 - Running Code outside the Request Response Cycle with Django and Celery
00:57:33 - Integrate Django & Celery
01:04:50 - Django Celery Task to Generate Fake Data
01:13:45 - Auto Schedule Tasks with Celery Beat
01:19:12 - Celery Task Queues for Individual Worker Nodes
01:29:52 - Django Project within Docker Compose
01:41:54 - Docker Compose Watch to Auto Refresh Django Container
01:47:02 - Multi-Node Celery Running on Docker Compose
01:56:00 - Configure Raspberry Pi OS for your Pi Cluster
02:03:01 - Verify Pi Installation and Create Ansible Inventory File
02:09:42 - Using Ansible to Configure our Pi Cluster for Django
02:41:10 - Production TimescaleDB
02:52:24 - Timescale DB Queries and API Responses
03:05:11 - Additional TimescaleDatabase Queries
03:13:05 - Visualizing Average Temperature Over Time
03:17:18 - Visualizing Average Temperature Per Node Over Time
03:23:36 - Thank you and next steps
thanks for your enterpreneur applications
😮😂O😅😅😅😅😅😅😅😅😊😅😅😅😅😢😅😅😮😊😅😅😅😅
great tutorial bro, I got my job 2 years ago, because i saw your tutorials, thanks
Excellent to hear! Thank you for sharing.
Keep it up
I just Say you are god of django
Please Always give us more & more django project to upscale are django skill.
Sounds good! Thanks
Bro consistent asf, Django after Django, respect 🙌
🙌. What should be next?
@@CodingEntrepreneurs Django for real time communications please, web-sockets, audio and video streams and all that good stuff
@@CodingEntrepreneurs consider looking into setting up payments for SaaS, specifically lean using Stripe payments? Can we look into including a token or actions tracker to track paid subscribers actions and allow for profitable business models to develop?
Special thanks, you have been very helpful to me.
@@CodingEntrepreneurs DRF, React & AWS this three thing combine truly needed no free tutorial available who teach this three thing combine. I learn from Udemy different paid courses, But if you make tutorial it's truly help to improve are django skill.
DRF, React & AWS this three thing combine truly needed no free tutorial available who teach this three thing combine. I learn from Udemy different paid courses, But if you make tutorial it's truly help to improve are django skill.
Interesting! Like with Terraform and AWS?
Bro everything i know about Django , you helped me achieve this unique skills and i keep getting better
Thank you!
Hey brother! long time man glad yur still rocking and rolling I honestly think you were the one who taught me django maybe back in 2013/2014
Thanks for your great tutorial!
Love and love.... your content
Thank you!
I have different sensors in my setup. There will be sensors, that only measures temperature and sensors that measures temperature and humidity. How to handle this in this setup? Would you an extra field for humidity to the Metric table, or split it in 2 tables for MetricTemperature and MetricHumidity?
👀I'm watching your previous tutorial, and now you are dropping another one
Just trying to keep you busy 😏
@CodingEntrepreneurs 😂seem like I'm not going to touch grass for a while
Love your content!!!
Thank you!
🔥
@DennisIvy
Please make video tutorial on DRF, React & AWS this three thing combine truly needed no free tutorial available who teach this three thing combine. I learn from Udemy different paid courses, But if you make tutorial it's truly help to improve are django skill.
Thank you!
Thank you bro
Thanks ❤
Good job, Justin ❤
Thank you!
This is fire 🔥
🎉
You rock sir. But I would like more kubernetes deployment please
Thanks for everything
For any kind of deployment or Django specifically or FastAPI or Nextjs?
@@CodingEntrepreneurs any kind of deployment sir I just want to see some kubernetes involved sir
Wow 😳, who are you?
You are teaching us mega courses for free ❤❤❤❤❤❤❤❤❤❤❤🎉🎉🎉🎉🎉🎉🎉🎉
Education sets us free
The best of the best 👍
You made my day!
Django IOT add Geodjango concepts its increase weight for your explanation
Geodjango would be cool
I owe my career to him. I wish you do Machine learning tutorials. I am trying to divert to that and it has not been easy
What type of ML are you trying to learn exactly?
😊
Excellent video.
Can you talk a little about the equipment you use to record?
Camera? Microphone? Editing software?
Sony A6600
Shure SMB70
Camtasia + Adobe Premiere
CamLink 4K too
It great to see some these tools.help us to slove complex problem .
Thanks for video again
Always you show us how to use Django in different ways I love your content!
toonned !
Can you do a series on Networking and Cloud architecture for Developers Like AWS, Teraform, etc
Also, I would like to suggest the most important networking concepts all developers should know
Hello World 🌍 Django IoT
Yeahhhh! Let’s do this
Pat😊o