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

Комментарии • 57

  • @CodingEntrepreneurs
    @CodingEntrepreneurs  19 дней назад +32

    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

    • @ahmadumar9387
      @ahmadumar9387 16 дней назад

      thanks for your enterpreneur applications

    • @user-kd3bj2hf9c
      @user-kd3bj2hf9c 13 дней назад

      😮😂O😅😅😅😅😅😅😅😅😊😅😅😅😅😢😅😅😮😊😅😅😅😅

  • @nextgodlevel4056
    @nextgodlevel4056 17 дней назад +4

    great tutorial bro, I got my job 2 years ago, because i saw your tutorials, thanks

  • @partht21
    @partht21 18 дней назад +7

    I just Say you are god of django
    Please Always give us more & more django project to upscale are django skill.

  • @hbfl3x50
    @hbfl3x50 19 дней назад +6

    Bro consistent asf, Django after Django, respect 🙌

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  19 дней назад

      🙌. What should be next?

    • @hbfl3x50
      @hbfl3x50 19 дней назад +3

      @@CodingEntrepreneurs Django for real time communications please, web-sockets, audio and video streams and all that good stuff

    • @jacojames
      @jacojames 18 дней назад

      ​@@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.

    • @partht21
      @partht21 18 дней назад +3

      @@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.

  • @partht21
    @partht21 18 дней назад +5

    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.

  • @judevector
    @judevector 19 дней назад +3

    Bro everything i know about Django , you helped me achieve this unique skills and i keep getting better

  • @DirtySouth33T
    @DirtySouth33T 14 дней назад

    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

  • @lisiushing
    @lisiushing 19 дней назад +2

    Thanks for your great tutorial!

  • @kumargupta7149
    @kumargupta7149 19 дней назад +2

    Love and love.... your content

  • @oleschelde6929
    @oleschelde6929 5 дней назад

    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?

  • @DisabledCookie
    @DisabledCookie 19 дней назад +2

    👀I'm watching your previous tutorial, and now you are dropping another one

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  19 дней назад

      Just trying to keep you busy 😏

    • @DisabledCookie
      @DisabledCookie 19 дней назад

      @CodingEntrepreneurs 😂seem like I'm not going to touch grass for a while

  • @chiragbiradar5593
    @chiragbiradar5593 19 дней назад +2

    Love your content!!!

  • @DennisIvy
    @DennisIvy 18 дней назад +3

    🔥

    • @partht21
      @partht21 18 дней назад +3

      @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.

  • @aashayamballi
    @aashayamballi 19 дней назад +1

    Thank you!

  • @unisonrul1171
    @unisonrul1171 19 дней назад +1

    Thank you bro

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt 19 дней назад +1

    Thanks ❤

  • @ridwanray
    @ridwanray 19 дней назад +1

    Good job, Justin ❤

  • @alexandergarzo9415
    @alexandergarzo9415 19 дней назад +1

    This is fire 🔥

  • @gouemoregis195
    @gouemoregis195 19 дней назад +1

    You rock sir. But I would like more kubernetes deployment please
    Thanks for everything

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  19 дней назад

      For any kind of deployment or Django specifically or FastAPI or Nextjs?

    • @gouemoregis195
      @gouemoregis195 19 дней назад

      @@CodingEntrepreneurs any kind of deployment sir I just want to see some kubernetes involved sir

  • @AGASTRONICS
    @AGASTRONICS 19 дней назад +1

    Wow 😳, who are you?
    You are teaching us mega courses for free ❤❤❤❤❤❤❤❤❤❤❤🎉🎉🎉🎉🎉🎉🎉🎉

  • @islamibrahim4382
    @islamibrahim4382 19 дней назад +1

    The best of the best 👍

  • @dgiri2333
    @dgiri2333 19 дней назад +1

    Django IOT add Geodjango concepts its increase weight for your explanation

  • @femiiir
    @femiiir 19 дней назад +9

    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

  • @raulgarcia9179
    @raulgarcia9179 18 дней назад +1

    Excellent video.
    Can you talk a little about the equipment you use to record?
    Camera? Microphone? Editing software?

  • @abhisheksanjaygawade1479
    @abhisheksanjaygawade1479 19 дней назад

    It great to see some these tools.help us to slove complex problem .
    Thanks for video again

  • @bereketworku2078
    @bereketworku2078 8 дней назад

    Always you show us how to use Django in different ways I love your content!

  • @hailemariam2489
    @hailemariam2489 19 дней назад +1

    toonned !

  • @maqboolthoufeeqt
    @maqboolthoufeeqt 18 дней назад

    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

  • @AGASTRONICS
    @AGASTRONICS 19 дней назад +3

    Hello World 🌍 Django IoT

  • @nityavlogs1555
    @nityavlogs1555 7 дней назад

    Pat😊o