Andreas Jud
Andreas Jud
  • Видео 108
  • Просмотров 204 945
Create a Tenant with Django - Part 2
In this video we will create a tenant and a custom admin site.
Repository: github.com/andyjud/tenants
Django Live Site: awesomepixx.com
0:00 django-tenants installation
3:20 Tenants configurations
5:06 Tenant Manager app
8:38 Create Tenant & Superuser
12:04 Dynamic Page Title
12:58 Tenant Admin Site
14:33 Public Schema Urls
Support me on:
Patreon: www.patreon.com/andreasjud
Buy me a Coffee: www.buymeacoffee.com/andreasjud
Merch Store: andreas-jud-store.myspreadshop.com/
Thank you.
Follow me on:
Twitter: ajudmeister
Instagram: ajudmeister
#tenants #schemas #postgres #postgresql #djangotenants #python #pythonprogramming #selftaughtdeveloper #webdevelopment #webapp #webdesigner #pr...
Просмотров: 500

Видео

Tenants with Django, Intro - Part 1
Просмотров 2 тыс.День назад
In this video I will give a quick introduction to tenants and set up a basic Django application Repository: github.com/andyjud/tenants Django Starter: ruclips.net/video/SQ4A7Q6_md8/видео.html Docker Postgres: ruclips.net/video/BTYjlW2zumE/видео.html Django Live Site: awesomepixx.com 0:00 Intro 2:23 Demo 2:48 Tenant concept 6:02 Django Starter Setup 8:24 Postgres Container 12:54 Items List featu...
Deploy Docker Image, Github Container Registry & Github Actions - Docker Part 4
Просмотров 46214 дней назад
In this video we will deploy our dockerized Django application to a webserver and also publish our Docker Image to Github's Container Registry automatically with Github Actions. Repository: github.com/andyjud/docker Django Deploy: ruclips.net/video/IkHKg5Unniw/видео.html Live Django App: awesomepixx.com 0:00 Intro & Overview 2:32 Deploy Preparations 12:48 Push to Github and Deploy 16:46 Github ...
Docker Compose with Celery, Flower, Beat and Redis containers - Docker Part 3
Просмотров 1,1 тыс.Месяц назад
In this video we will containerize a complete background task system with 6 containers, including Celery, Flower, Beat and Redis Repository: github.com/andyjud/docker Background Tasks: ruclips.net/video/yE0eg0frVoU/видео.html Redis: ruclips.net/video/vypZv8OVfCk/видео.html Celery: ruclips.net/video/CkR_gjlDH-4/видео.html Flower: ruclips.net/video/GtheHlioTrA/видео.html Beat: ruclips.net/video/d...
Postgres Container - Docker Part 2
Просмотров 547Месяц назад
In this video we will containerize a Postgres Database Repository: github.com/andyjud/docker Live Django App: awesomepixx.com 0:00 Intro 2:25 Docker Compose 5:25 Port Issue 7:36 Postgres Configurations 10:50 Restart option 11:52 Named Volumes Support me on: Patreon: www.patreon.com/andreasjud Buy me a Coffee: www.buymeacoffee.com/andreasjud Merch Store: andreas-jud-store.myspreadshop.com/ Thank...
Docker - Containerize a Django App
Просмотров 2,4 тыс.Месяц назад
In this video I give a brief introduction to Docker and create a Dockerized Django App. Repository: github.com/andyjud/docker Django-Starter: github.com/andyjud/django-starter Live Django App: awesomepixx.com 0:00 Intro & Set Up 5:40 Dockerfile 11:52 .dockerignore 13:05 Docker Image 14:50 Docker Container 16:52 Docker Volumes 20:00 Docker Compose Support me on: Patreon: www.patreon.com/andreasj...
Custom Logging with Django - Log to Console, File and Email
Просмотров 727Месяц назад
In this video we will create a custom logger to better debug our app in production. This video was suggested by a Patreon. Thanks Brant! Logging Repo: github.com/andyjud/backend-tutorial/tree/main/logging Django Starter Code: github.com/andyjud/django-starter Email Setup: ruclips.net/video/H7WuQTtN6ac/видео.html 0:00 Intro and Setup 3:12 Filters and Formatters 6:10 Handlers 9:00 Loggers 12:18 T...
How to deploy Celery, Flower and Beat - Django Background Tasks - Part 5
Просмотров 7662 месяца назад
In this video we will deploy the celery ecosystem to Railway. Demo: celery-messageboard.up.railway.app/ Django Deploy: ruclips.net/video/IkHKg5Unniw/видео.html Railway Deploy: ruclips.net/video/AjKhxWgGpjY/видео.html Repository: github.com/andyjud/celery Docker Setup: ruclips.net/video/bmU9K3BttVc/видео.html Django Live Site: awesomepixx.com 0:00 Intro and Set Up 2:45 Redis and settings.py 6:53...
How to send a newsletter with Celery Beat - Django Background Tasks - Part 4
Просмотров 5812 месяца назад
How to send a newsletter with Celery Beat - Django Background Tasks - Part 4
How to monitor Celery Tasks with Flower - Django Background Tasks - Part 3
Просмотров 1,1 тыс.2 месяца назад
How to monitor Celery Tasks with Flower - Django Background Tasks - Part 3
How to set up Celery and Redis - Django Background Tasks - Part 2
Просмотров 1,2 тыс.3 месяца назад
How to set up Celery and Redis - Django Background Tasks - Part 2
How to send Email Notifications as Background Tasks with Celery - Python Threading - Part 1
Просмотров 1,8 тыс.3 месяца назад
How to send Email Notifications as Background Tasks with Celery - Python Threading - Part 1
Deploy with Daphne and Redis - Real-Time Chat app - Part 10
Просмотров 1,8 тыс.3 месяца назад
Deploy with Daphne and Redis - Real-Time Chat app - Part 10
Django Deploy with Render, PostgreSQL, Cloudinary, Gmail, Github & Tailwind
Просмотров 1 тыс.3 месяца назад
Django Deploy with Render, PostgreSQL, Cloudinary, Gmail, Github & Tailwind
Sending Files - Real-Time Chat app - Part 9
Просмотров 1,4 тыс.4 месяца назад
Sending Files - Real-Time Chat app - Part 9
Live Activity Monitoring - Real-Time Chat app - Part 8
Просмотров 1,2 тыс.4 месяца назад
Live Activity Monitoring - Real-Time Chat app - Part 8
Group Chat - Real-Time Chat app - Part 7
Просмотров 1,7 тыс.4 месяца назад
Group Chat - Real-Time Chat app - Part 7
Private Chat - Real-Time Chat app - Part 6
Просмотров 2,6 тыс.4 месяца назад
Private Chat - Real-Time Chat app - Part 6
Redis, Alternatives & Deployment - Real-Time Chat app - Part 5
Просмотров 2,2 тыс.5 месяцев назад
Redis, Alternatives & Deployment - Real-Time Chat app - Part 5
Online Tracker with Websockets - Real-Time Chat app - Part 4
Просмотров 2,5 тыс.5 месяцев назад
Online Tracker with Websockets - Real-Time Chat app - Part 4
Django Channels & Websockets with Htmx - Real-Time Chat app - Part 3
Просмотров 6 тыс.5 месяцев назад
Django Channels & Websockets with Htmx - Real-Time Chat app - Part 3
Basic Setup with Htmx - Real-Time Chat app - Part 2
Просмотров 10 тыс.5 месяцев назад
Basic Setup with Htmx - Real-Time Chat app - Part 2
Real-Time Chat app with Django Channels and WebSockets Introduction - Part 1
Просмотров 16 тыс.5 месяцев назад
Real-Time Chat app with Django Channels and WebSockets Introduction - Part 1
Django Starter with Allauth and Htmx
Просмотров 7 тыс.6 месяцев назад
Django Starter with Allauth and Htmx
Thank you for 1k Subs & Deployment Cheat Sheet
Просмотров 2966 месяцев назад
Thank you for 1k Subs & Deployment Cheat Sheet
AWS S3 bucket & files transfer - Deployment with Django - Part 14
Просмотров 8096 месяцев назад
AWS S3 bucket & files transfer - Deployment with Django - Part 14
Upgrade Django version & packages - Deployment with Django - Part 13
Просмотров 6107 месяцев назад
Upgrade Django version & packages - Deployment with Django - Part 13
Deploy Django app to Railway
Просмотров 4,8 тыс.7 месяцев назад
Deploy Django app to Railway
Deploy Django app to fl0.com
Просмотров 6997 месяцев назад
Deploy Django app to fl0.com
SEO, Sitemaps, Open Graph and Google Analytics - Deployment with Django - Part 12
Просмотров 1,7 тыс.7 месяцев назад
SEO, Sitemaps, Open Graph and Google Analytics - Deployment with Django - Part 12

Комментарии

  • @Dorso2009
    @Dorso2009 18 часов назад

    This tutorial is epic! Thanks for the great work!

  • @captaintonny9581
    @captaintonny9581 20 часов назад

    Simply the best series, learning a lot of the python concepts in these tuts.

  • @IbukunOlaifa
    @IbukunOlaifa 2 дня назад

    Hii Andreas, I love your content, I'm confused about the fade-In tag you used for the hyperscript transition, was it a custom tag by django or something else

  • @hoschi60
    @hoschi60 2 дня назад

    Danke!

  • @abobakerkhaled4896
    @abobakerkhaled4896 2 дня назад

    Hello Andreas, How are you? I hope you are fine! I want to know what is the method you used to style the website while the HTML does not have CSS I see just classes? Thanks!!!

    • @ajudmeister
      @ajudmeister 2 дня назад

      Hi, this is TailwindCSS. In my frontend series I cover this: ruclips.net/video/mZn5kkgPi6M/видео.html

  • @aashayamballi
    @aashayamballi 2 дня назад

    thank you!

  • @Stephan106
    @Stephan106 3 дня назад

    Great video, can you also make a video about redirecting tenants from the public site to tenant site when a user registers, log's in and log's out

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 3 дня назад

    12:45 How is it even possible that you just pasted the layout of the `b.html` project that inherits from the `base.html` project into allauth `base.html` and you have all the styling on the allauth signup page, including the inputs and the button? Where is the styling for this, because surely not in the `base.html` project?

    • @ajudmeister
      @ajudmeister 3 дня назад

      the allauth setup is a bit different with the new version of allauth. Check out my video about django starter to set it up: ruclips.net/video/SQ4A7Q6_md8/видео.html. Regarding the styling, I am using TailwindCSS and loading the styles from a cdn using the classes, for fast development. Only in production we need to create our final css styles.

  • @abobakerkhaled4896
    @abobakerkhaled4896 4 дня назад

    a question What if we entered another email in the profile I have tried that but it didn't show me any errors! So what if?!

    • @ajudmeister
      @ajudmeister 3 дня назад

      It is up to you what kind of logic you want to have there, like: before you can change email you need to add the password again or send a verification email to the user automatically. I implemented just the basic functionality to be able to change email.

  • @abobakerkhaled4896
    @abobakerkhaled4896 4 дня назад

    Thank you Andreas for these tutorials It would be great if you make another tutorials like this so we can practice with these concepts As you know practice is the key! thanks in advance. this comment from Egypt.

    • @ajudmeister
      @ajudmeister 3 дня назад

      You could have a look at my django starter project, where I go through the steps again, slightly different: ruclips.net/video/SQ4A7Q6_md8/видео.html. More tutorials to come

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

    will you make a video on django social login with google and facebook

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

      @@adarsh6766 yes, on the list

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

    my allauth version is 4.12.2. When you say the location of base.html changed , do i create /allauth/layouts/base.html or how do i go about it . thank you.

    • @ajudmeister
      @ajudmeister 4 дня назад

      yes exactly. Have a look at my starter code repo: github.com/andyjud/django-starter

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

    Thanks for this video

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

    Nice content sir!

  • @randomapperatus3773
    @randomapperatus3773 6 дней назад

    Is s3 the most cost effective solution to photo storage if it is accessed frequently?

    • @ajudmeister
      @ajudmeister 6 дней назад

      @@randomapperatus3773 not sure about pricing, but s3 is pay as you go after the first year, so you would pay more if it’s accessed more frequently. If you have many request maybe s3 combined with cloudfront cache storage is more cost efficient. Other alternatives are digital ocean or Google cloud storage.

    • @randomapperatus3773
      @randomapperatus3773 6 дней назад

      @@ajudmeister beginning to wonder if I could just do a photo storage solution server myself at this point. Either doing it myself or looking at open source software for that.

    • @ajudmeister
      @ajudmeister 6 дней назад

      @@randomapperatus3773 maybe that’s a good plan. To be honest I am still looking for a good and cost effective file storage solution.

    • @randomapperatus3773
      @randomapperatus3773 6 дней назад

      @@ajudmeister I think the issue would be getting Django to work well with it. Tbh getting Django to work with S3 with proper permissions is already a nightmare.

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

      @@ajudmeister just found a solution that uses existing AWS API code for Django but is open source. Minio

  • @TechForgeinstitute
    @TechForgeinstitute 6 дней назад

    Love your tutorials

  • @allanbakwanamaha2998
    @allanbakwanamaha2998 6 дней назад

    Thanks so much for the content, is there a way of displaying domains not as subdomains i.e. instead of coffeeshop.localhost:8000 to localhost:8000/coffeeshop. So that one can have a template for users to type the Tenants

  • @JuanitoOrtega
    @JuanitoOrtega 6 дней назад

    Oh my god, I am loving this video series, asap I will renuew my subscription on patreon. Thank you so much.

    • @ajudmeister
      @ajudmeister 6 дней назад

      @@JuanitoOrtega awesome, thanks so much!

  • @KevinObf
    @KevinObf 6 дней назад

    The best 🎉❤

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

    Thanks! Great video!

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

    Many thanks for all your videos

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

    Great, thank you Andreas! Is there a way to show all tenants in the superusers /admin so everything is in one place?

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

      @@TomislavMiletic yes the custom admin_tenants site will have all the tenants listed of the application.

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

    thanks, i had issues with the authenticaiton using this module, now i finally got it working

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

    Thanks from this Awesome tutorial This is comment from egypt! Thanks🤗🤗

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

      Thanks for the feedback ❤️

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

    thank you

  • @user-iu8kt2xn4w
    @user-iu8kt2xn4w 7 дней назад

    The Algotythmn protects, Bro

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

    "Sometimes entrypoint_sh didn’t work on Windows OS. Instead, I used this command in the docker-compose_yml file services > app: sh -c 'python manage_py makemigrations && python manage_py migrate && python manage_py runserver 0.0.0.0:8000'. This approach worked."

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

      Yes this works, or also the vertical pip symbol: command: | python manage.py makemigrations python manage.py migrate python manage.py runserver 0.0.0.0:8000

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

    One of the best tutorial i've ever seen on YT. You have a gift to teach man👌. 1. But why in Django in models (11:53) we use class variable without `self`? 2. 11:55 Why You use `{% if request.user.is_authenticated %}` and in another tutorial You use {% if user.is_authenticated %}`. What's the difference?

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

      Thanks a lot! 1. We define model classes without 'self' because these are class attributes and not instance attributes. 'Self' you would use when defining a method inside a class. 2. they are the same, the difference is what object you are accessing. The request object is loaded to every template and we can access the user from there, or we can use the "user" variable, which is loaded also automatically to every template, and represents the logged-in user. That's why you should not name a variable "user", that would override this variable. But which version you want to use is up to you. Without "request." is simpler.

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

      @@ajudmeister But we use instances of a class in a project not class itself. Is that correct?

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

    Looking forward to the next video

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

    Super great content mate. Thanks, and respect! :)

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

      I appreciate the feedback. thanks!

  • @user-gz5bs6qf7o
    @user-gz5bs6qf7o 9 дней назад

    This part is so crazy :)). There is a problem with the connections order when websocket handle them. The handshake should occurs after the disconnect, but sometimes, the disconnect occurs before handshake.

    • @ajudmeister
      @ajudmeister 9 дней назад

      The handshake occurs before the websocket connection is established. There can be more websocket connections open at the same time, so you might see some overlaps in the console.

    • @user-gz5bs6qf7o
      @user-gz5bs6qf7o 8 дней назад

      @@ajudmeister Hmm, I have tested it. When we refresh the page, the browser will create a new connection to Websocket and it disconnect the previous connection. If the new connection occurs after the previous connection disconnects, it's okay. Otherwise, the new occurs before the old, the user will be deleted out of the online users because the disconnect of previous connection.

  • @shahidmalik-he3zv
    @shahidmalik-he3zv 9 дней назад

    great explanation and the diagram was awesome .

  • @user-gz5bs6qf7o
    @user-gz5bs6qf7o 9 дней назад

    chatroom, chatgroup, group chat, ... so confusing -_- !!!

    • @ajudmeister
      @ajudmeister 9 дней назад

      @@user-gz5bs6qf7o yea you are right, in hindsight I should have made more distinctive names

  • @caglargulucan
    @caglargulucan 9 дней назад

    Railway is fast and cheap, but setting up Docker, environment variables, and start commands for each service individually was a bit tedious and laborious. What do you think about DigitalOcean or AWS, and how do you choose in your own real projects? By the way, I'll be honest, it was the best training I've ever seen.

    • @ajudmeister
      @ajudmeister 9 дней назад

      @@caglargulucan tbh I have not tried it with DigitalOcean or AWS and they might be much better with deploying docker Images and automating multi container setups. I dunno. As you said, I like railway because it’s fast, cheap and I had no problems so far.

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 10 дней назад

    This channel is a gold. Finally I know how to use the Docker, but I don't know how to use a container on another PC though.

    • @ajudmeister
      @ajudmeister 10 дней назад

      In part 4 I cover deployment, maybe there is something you want to know about containers on other machines.

  • @JuanitoOrtega
    @JuanitoOrtega 10 дней назад

    I was waiting for something like this. Thank you so much. You are really awesome.

    • @ajudmeister
      @ajudmeister 10 дней назад

      @@JuanitoOrtega thank you!

  • @vaig655477
    @vaig655477 11 дней назад

    When I deployed using render, all my local images broke. I thought it was because of the free version and the inability to access the disk. How does it work for you?

    • @ajudmeister
      @ajudmeister 10 дней назад

      Did you set up a media server? Static images should work, but for media files you need a media server.

  • @anandraj2895
    @anandraj2895 11 дней назад

    my most of the projects will be in django tenants as DBaas products

  • @SayedHussainYousafi
    @SayedHussainYousafi 11 дней назад

    perfectly perfect; very nice, finally find someone who knows how to share his knowledge with other, supper useful, appreciated dud. keep up of the good work.

    • @ajudmeister
      @ajudmeister 9 дней назад

      Thanks a lot for the feedback ❤️

  • @LJSheffRBLX
    @LJSheffRBLX 11 дней назад

    Andreas Jud, cool content dude

  • @frameff9073
    @frameff9073 11 дней назад

    good thank you

  • @caglargulucan
    @caglargulucan 11 дней назад

    its great tutorial 💯

  • @aminblm
    @aminblm 11 дней назад

    Amazing work, doing my part for the algorithme

  • @AfterDune
    @AfterDune 11 дней назад

    Seen plenty of videos where people used Tailwind - it looks awesome and thanks to you I understand it a lot better. Thanks.

  • @aafan.kuware
    @aafan.kuware 11 дней назад

    please upload the next video at your earliest, thank you.

  • @mariocortes2670
    @mariocortes2670 12 дней назад

    Thanks for this video.

  • @alexdin1565
    @alexdin1565 12 дней назад

    thanks this is amazing topic and its new on youtube, please can you make a video to the series when redirest coofeshop.localhost ===> mydomain car.localhost ===> mycardomain as shopify you add your domain and verify it using text record I hope you get the idea?

  • @user-iu8kt2xn4w
    @user-iu8kt2xn4w 12 дней назад

    For the Algotythmn

  • @awesomejr.530
    @awesomejr.530 12 дней назад

    Thank you so much for this video. I was just thinking about this today and you just uploaded it. 😁

    • @ajudmeister
      @ajudmeister 12 дней назад

      @@awesomejr.530 good timing then 😀

    • @awesomejr.530
      @awesomejr.530 11 дней назад

      @@ajudmeister yes. 😁

    • @ndroidLover
      @ndroidLover 11 дней назад

      @@ajudmeister hey andreasjud please make a playlist on elasticsearch, rabbitmq and kafka in django, its a humble request.

  • @MrValVet
    @MrValVet 12 дней назад

    this might be the only django-tenants video tutorial, thank you

    • @mariocortes2670
      @mariocortes2670 12 дней назад

      I agree with that. Tenants is on of the topics harder to find in a practical way.