Media Server - Cloudinary - Deployment with Django - Part 4

  Рет қаралды 1,690

Andreas Jud

Andreas Jud

Күн бұрын

Пікірлер: 29
@ajudmeister
@ajudmeister 2 ай бұрын
DEFAULT_FILE_STORAGE is deprecated. Instead use: STORAGES = { "default": { "BACKEND": "cloudinary_storage.storage.MediaCloudinaryStorage", }, "staticfiles": { "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", }, }
@venuchilukala
@venuchilukala Ай бұрын
Thanks😊
@vicentequinsamolle6768
@vicentequinsamolle6768 Ай бұрын
Omg!! thank you!!
@CaptainCoder1
@CaptainCoder1 24 күн бұрын
Thank you very much for updating about it through comment otherwise i could not understand how to i fix the bug. good thing you updated about this. Love you. I'm really enjoying your series of series.
@ajudmeister
@ajudmeister 23 күн бұрын
@@CaptainCoder1 you are welcome :)
@AmoahDevLabs
@AmoahDevLabs Жыл бұрын
Thanks for sharing. I'm looking forward for more content.
@celloucisse7548
@celloucisse7548 Жыл бұрын
Thanks a lot boss! Waiting for the next one.
@ajudmeister
@ajudmeister Жыл бұрын
Coming soon
@Armin-q6p
@Armin-q6p Жыл бұрын
Cool stuff Bro. See you soon
@driouichelmahdi
@driouichelmahdi 4 ай бұрын
Thanks Bro ❤❤ Nice tuto
@pungushe
@pungushe Жыл бұрын
Thank you for the video
@ThắngPhu-z1t
@ThắngPhu-z1t Жыл бұрын
Great guide
@sambhrammathad1330
@sambhrammathad1330 10 ай бұрын
After uploading the image in cloudinary how to delete that image from django views ?
@ajudmeister
@ajudmeister 10 ай бұрын
You can use the cloudinary api: from cloudinary import api def delete_image(image_id): api.delete_resources([image_id]) The image_id is the unique identifier stored in your database.
@allanbakwanamaha2998
@allanbakwanamaha2998 10 ай бұрын
Hello, awesome concept shared here. However, I have tried the same with my website but the images are not rendered. What could be the issue? Cause I checked on Cloudinary media explorer and nothing was created except seeing the default images from it. Will be grateful for more guidance, thanks Jud!
@ajudmeister
@ajudmeister 10 ай бұрын
Does your model has ImageField and upload_to set? Does it work locally?
@benjaminmehrez3384
@benjaminmehrez3384 3 ай бұрын
@@ajudmeister I have the same problem but I did what you said and I don't have solution
@benjaminmehrez3384
@benjaminmehrez3384 3 ай бұрын
And.. when I use POSTGRES_LOCALLY= True and I add a photo a folder is created in my vsc
@ajudmeister
@ajudmeister 3 ай бұрын
@@benjaminmehrez3384 that means that it is not connecting to cloudinary. Can you please share your media server settings?
@benjaminmehrez3384
@benjaminmehrez3384 3 ай бұрын
@@ajudmeister yes
@mikewski4410
@mikewski4410 Жыл бұрын
Can we use project storage to store media files? I mean we need to pay another service because we need to store media files.
@ajudmeister
@ajudmeister Жыл бұрын
By project storage do you mean the web server? The reason we can’t use it as with every new deploy the whole application is rebuild and we lose any media files which have been uploaded. It’s not a permanent static server.
@mikewski4410
@mikewski4410 Жыл бұрын
@@ajudmeister so we can use if there we paid for it, right?
@ajudmeister
@ajudmeister Жыл бұрын
@@mikewski4410 no, render doesn’t seem to have a media storage service, Amazon, Google, Microsoft or Digital Ocean offer web service and media storage.
@mikewski4410
@mikewski4410 Жыл бұрын
@@ajudmeister I will checkout some other hosting website like GoDaddy or something else.
@biscotty6669
@biscotty6669 Жыл бұрын
I plan to deploy locally with nginx, and I don't have a storage issue. Is there an advantage to using cloudinary in my case? Cheers.
@ajudmeister
@ajudmeister Жыл бұрын
Cloudinary is a cdn, so it can serve media files very efficiently everywhere around the globe and optimizes them for different screen size and resolutions. But you can also serve your files locally, especially when they are not too big in size.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
How To Self Host Behind CGNAT With Wireguard and pfsense
15:22
Lawrence Systems
Рет қаралды 16 М.
Modernise the Django admin UI with Unfold
6:44
Cloud With Django
Рет қаралды 8 М.
CI/CD pipeline & Cron Job - Deployment with Django - Part 6
17:18
AWS S3 bucket & files transfer - Deployment with Django - Part 14
33:19
Deploy a Django web app to Vercel [FREE]
18:21
Cloud With Django
Рет қаралды 88 М.
Stop Mocking Your Database! Use Testcontainers in .NET
15:59
Milan Jovanović
Рет қаралды 6 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 221 М.
Learn Django in 20 Minutes!!
21:25
Tech With Tim
Рет қаралды 445 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН