![Andreas Jud](/img/default-banner.jpg)
- Видео 108
- Просмотров 204 945
Andreas Jud
Добавлен 17 дек 2007
Tech-curious web designer, turned Django programmer and everything in between, stay-at-home dad of two
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...
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
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
This tutorial is epic! Thanks for the great work!
Simply the best series, learning a lot of the python concepts in these tuts.
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
Danke!
Danke 😊
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!!!
Hi, this is TailwindCSS. In my frontend series I cover this: ruclips.net/video/mZn5kkgPi6M/видео.html
thank you!
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
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?
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.
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?!
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.
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.
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
will you make a video on django social login with google and facebook
@@adarsh6766 yes, on the list
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.
yes exactly. Have a look at my starter code repo: github.com/andyjud/django-starter
Thanks for this video
Nice content sir!
Is s3 the most cost effective solution to photo storage if it is accessed frequently?
@@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.
@@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.
@@randomapperatus3773 maybe that’s a good plan. To be honest I am still looking for a good and cost effective file storage solution.
@@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.
@@ajudmeister just found a solution that uses existing AWS API code for Django but is open source. Minio
Love your tutorials
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
Oh my god, I am loving this video series, asap I will renuew my subscription on patreon. Thank you so much.
@@JuanitoOrtega awesome, thanks so much!
The best 🎉❤
Thanks! Great video!
Many thanks for all your videos
Great, thank you Andreas! Is there a way to show all tenants in the superusers /admin so everything is in one place?
@@TomislavMiletic yes the custom admin_tenants site will have all the tenants listed of the application.
thanks, i had issues with the authenticaiton using this module, now i finally got it working
Thanks from this Awesome tutorial This is comment from egypt! Thanks🤗🤗
Thanks for the feedback ❤️
thank you
The Algotythmn protects, Bro
"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."
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
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?
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.
@@ajudmeister But we use instances of a class in a project not class itself. Is that correct?
Looking forward to the next video
Super great content mate. Thanks, and respect! :)
I appreciate the feedback. thanks!
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.
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.
@@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.
great explanation and the diagram was awesome .
chatroom, chatgroup, group chat, ... so confusing -_- !!!
@@user-gz5bs6qf7o yea you are right, in hindsight I should have made more distinctive names
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.
@@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.
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.
In part 4 I cover deployment, maybe there is something you want to know about containers on other machines.
I was waiting for something like this. Thank you so much. You are really awesome.
@@JuanitoOrtega thank you!
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?
Did you set up a media server? Static images should work, but for media files you need a media server.
my most of the projects will be in django tenants as DBaas products
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.
Thanks a lot for the feedback ❤️
Andreas Jud, cool content dude
good thank you
its great tutorial 💯
Amazing work, doing my part for the algorithme
Seen plenty of videos where people used Tailwind - it looks awesome and thanks to you I understand it a lot better. Thanks.
Glad it was helpful!
please upload the next video at your earliest, thank you.
Thanks for this video.
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?
For the Algotythmn
Thank you so much for this video. I was just thinking about this today and you just uploaded it. 😁
@@awesomejr.530 good timing then 😀
@@ajudmeister yes. 😁
@@ajudmeister hey andreasjud please make a playlist on elasticsearch, rabbitmq and kafka in django, its a humble request.
this might be the only django-tenants video tutorial, thank you
I agree with that. Tenants is on of the topics harder to find in a practical way.