I HIGHLY RECOMMEND this video. I just followed the video, followed the steps and it's working perfectly well. Big THANK YOU sir.
@CloudWithDjango
4 ай бұрын
Thank you so much for your kind words. I really appreciate it! Of course, it's my pleasure! :)
@Rex-fm2nt
3 ай бұрын
new subscriber because YOU ARE AWESOME!!! keep making these amazing tutorials!
@CloudWithDjango
3 ай бұрын
Thank you so much for the support!
@iamuser400
4 ай бұрын
Awesome! I was assigned a task elated to this on my first role yesterday. I'm hopeful it will work. I did everything well, and I'm just waiting for the credentials.
@CloudWithDjango
4 ай бұрын
Hi, I'm confident this'll work for you for managing your static and media files in Django.
@skahler
12 күн бұрын
I've done literally everything and even double checked my settings with GPT. I can't for the life of me get this to work and I've been at it all day. It keeps defaulting to static, it's like it's not even trying to push to S3 even though all the credentials are set up and everything, storages is in the middleware, whitenoise is commented out, and static files storage is boto. I have no idea what to do. It should at least throw an error if something is wrong with permmissions, or there should be a way to see if there was even a request made to s3. Oh. My. Gosh. It's been 24 hours, possibly 6-8 hours at just this alone.
@dillymccaffrey
6 ай бұрын
Great video! Clearly showed every step and easy to understand. Thank You :)
@CloudWithDjango
6 ай бұрын
Thank you so much! I'm glad that you found it useful!
@frhadagayev8193
8 ай бұрын
Thank you for the video. It took my whole day to solve it and finally with your video I did it
@CloudWithDjango
8 ай бұрын
My pleasure! I'm very glad to hear that you managed to come right with what you were trying to solve! All the best to you!
@emanuelcamargo3698
8 күн бұрын
i Can't say thank you enough
@CloudWithDjango
8 күн бұрын
Of course, my pleasure! Glad that you liked the video! :)
@staslis1924
9 ай бұрын
Awesome, thank you very much for this detailed AWS video!
@CloudWithDjango
9 ай бұрын
My pleasure!
@akokkalis1
9 ай бұрын
N you make a video for that package? Django APScheduler
@CloudWithDjango
9 ай бұрын
Thank you for the suggestion
@ab232xsss23
Ай бұрын
Great video, thanks !
@CloudWithDjango
Ай бұрын
Thank you so much! Glad that it helped!
@the_60_second_chill
2 ай бұрын
the last minutes are treasure
@CloudWithDjango
2 ай бұрын
Thank you so much!
@the_60_second_chill
2 ай бұрын
@@CloudWithDjango keep up brother allah bless your work
@CloudWithDjango
2 ай бұрын
Thank you so much!!
@nigh6374
6 ай бұрын
OMG this was amazingggggg
@CloudWithDjango
6 ай бұрын
Thank you so much! :)
@KumarSahil78
9 ай бұрын
Amazing video
@CloudWithDjango
9 ай бұрын
Thank you!
@kareemal-khayat3105
2 ай бұрын
the media files now is public .. how to prevent that? i have some media files that only the staff users can access it !
@CloudWithDjango
2 ай бұрын
Hi. Yes, that's right and how we go about it in this video, and under the assumption that they are like profile pictures and for everyone to see which everyone should see. If you only want staff users to access it, you will need to integrate additional settings to your JSON policy on S3
@defendersart3051
8 ай бұрын
Does getObject handle post request too.. I mean, form submission kind of work or adding users in our website. In short, Read/Write both permission works through GetObject in s3 bucket?
@jonatanmsanchez
2 ай бұрын
It helps but when I do the push in GitHub, does not allow me to, because of the keys 😢what can I do?
@CloudWithDjango
2 ай бұрын
Hi, This won't work because the access keys are sensitive data and it's dangerous to upload a project with aws access leys exposed. It should be within environment variables.
@jonatanmsanchez
2 ай бұрын
@@CloudWithDjango I might need s tutorial for that as well ❤️🩹
@CloudWithDjango
2 ай бұрын
Sure thing! I have a few tutorials on the channel that focus on setting up environment variables
@jonatanmsanchez
2 ай бұрын
@@CloudWithDjango thank you, I'll look it up
@CloudWithDjango
2 ай бұрын
No problem! Good luck!
@toddgilbey3979
2 ай бұрын
Unknown Error An unexpected error occurred. API response The specified configuration does not exist. Helpful.....
@CloudWithDjango
2 ай бұрын
Hi, I included the GitHub source code in the description, maybe check this for further reference?
@toddgilbey3979
2 ай бұрын
@@CloudWithDjango Thank you, will have a look.
@CloudWithDjango
2 ай бұрын
My pleasure! Good luck!
@siddharth.chandani
4 ай бұрын
Hello Just wanted to ask a question which service should i choose in AWS.. Elastic Beanstalk or S3 ? (please recommend the free one)
@CloudWithDjango
4 ай бұрын
Hi, Unfortunately, there are no free services in AWS. You will pay a fee. Elastic Beanstalk is for deployment and S3 is for handling objects (file management). The services are different.
@raulelizaldebreton9142
5 ай бұрын
How can i solve this error: botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden
@CloudWithDjango
5 ай бұрын
Hi, Please ensure that you have no syntax errors with the variable declaration and that you have valid access keys that you are using. This is the main reasons for error.
@ajibadeyakubadebare2169
8 ай бұрын
Thank you so much for this tutorials. I have a question please Does EC2 instances come with storage?
@CloudWithDjango
8 ай бұрын
My pleasure! Yes, EC2 instances come with storage. They are grouped into two types. Namely: Instance Store Volumes (Ephemeral Storage) and Amazon Elastic Block Store (EBS):
@ajibadeyakubadebare2169
8 ай бұрын
@@CloudWithDjango Thank you
@CloudWithDjango
8 ай бұрын
My pleasure!
@anthonydattolo6297
5 ай бұрын
no CDN setup?
@CloudWithDjango
5 ай бұрын
Hi, That is optional.
@pranavbakare8922
Ай бұрын
How much time it will take for collect static command over aws????
@CloudWithDjango
Ай бұрын
Hi. I cannot say. It all depends on the size of your application with the AWS CLI.
@pranavbakare8922
Ай бұрын
@@CloudWithDjango As check I was using ck editor for text body so it's consuming more time and files.... Post removal of ck editor it's working smoothly... .Thank you for contribution.... Keep sharing
@CloudWithDjango
23 күн бұрын
No worries! Glad that it helped!
@extorrote
2 ай бұрын
So after all this people can use my webApp online? How do I configure the link so people can go online and use my app ? Thank you
@CloudWithDjango
2 ай бұрын
Hi, I think there is a misunderstanding. In web development static files need to be public as do images if it's publically for all. This is not a deployment video, so you'd need to watch a tutorial on deployment so people can go online and use your app
@extorrote
2 ай бұрын
Thank you for your response , it’s my first time hosting a website or webApp, now my bucket got created in [us-1] and thats not letting me use the collectstatic
@CloudWithDjango
2 ай бұрын
No problem. I'd recommend double checking your steps and ensuring that everything is exact as I have done. It will work
@extorrote
2 ай бұрын
@@CloudWithDjango I’ll try again , thank you !
@CloudWithDjango
2 ай бұрын
Good luck! Of course, my pleasure!
@o-1352
5 ай бұрын
Hi, thanks for the tutorial but should I follow the same steps if I have a deployed app in EC2?
@CloudWithDjango
5 ай бұрын
Hi, No worries! It would be easier to follow these steps before deployment. It could be done with an app already deployed although, it might be tricky to handle from that approach
@o-1352
5 ай бұрын
@@CloudWithDjangothanks, a few changes but it worked
@CloudWithDjango
5 ай бұрын
No worries! Glad that you managed in the end!
@user-dx8jh8di7g
3 ай бұрын
hi why am i getting this error when doing 'manage.py collectstatic'. ..... raise ImproperlyConfigured("Could not load Boto3's S3 bindings. %s" % e) django.core.exceptions.ImproperlyConfigured: Could not load Boto3's S3 bindings. No module named 'six.moves' ...... i do have six package installed
@CloudWithDjango
3 ай бұрын
Hi, I'd suggest that you double check your configuration settings and that there are no syntax issues.
@nigh6374
6 ай бұрын
Guys, I have a problem, it worked properly, but I'm using tailwind with django, and that's why when I activate the bucket my css file also goes to s3, and is not reloaded on the page, I already deleted my tailwind css from the bucket but it didn't solve it, I only solve it by removing amazon s3 from the settings. Does anyone know how to solve it?
@CloudWithDjango
5 ай бұрын
Hi, Please ensure your static files are correctly configured to be served from Amazon S3. Check STATIC_URL and STATICFILES_STORAGE settings. Verify CSS files generated by Tailwind are collected and stored in your static files directory, then uploaded to S3. If CSS files aren't updating, check caching settings and invalidate cache when deploying changes. If issues persist, consult documentation or forums for specific guidance. Good luck!
@faizkhan2861
7 ай бұрын
How do i connect this to my django website which is deployed using pythonanywhere by watching ur other video? Since my css and js doesn't work there
@CloudWithDjango
7 ай бұрын
Hi, As soon as you've completed Amazon S3 for static and media files. It should work fine on PythonAnywhere. You need to do S3 first and then PythonAnywhere.
@NicolastheThird-h6m
9 ай бұрын
Can you do a video on Customizing Django allauth templates.
@CloudWithDjango
9 ай бұрын
Thank you for your suggestion
@marklong2060
4 ай бұрын
I am using Django 5.0, django-storages 1.14.2 and boto3 1.34.73. I have been trying all weekend to get this app to work with Backblaze B2 or Digital Ocean Spaces. Both are said to be S3 compatable. I am running into the same issue with both. My /static/ directory does not get picked up and loaded into my storage bucket upon calling collectstatic. Everything pertaining to my admin and all of the other apps in the project that have static files get swept up and loaded into my storage bucket and the admin works fine...but no static files or media files for my front end. I have no idea if it is django-storages or Django or something else. My logs look fine except for the fact that they do not show my /static/ directory being swept up for my remote bucket. Everything works fine in dev environment when serving from the file system.
@CloudWithDjango
4 ай бұрын
Hi, to troubleshoot the issue with your Django application not loading static files into your remote storage bucket: First, ensure that your Django settings are correctly configured to use the remote storage backend for static files. Check your STATIC_URL, STATIC_ROOT, and STATICFILES_STORAGE settings in your settings.py file. Verify that your application has the necessary permissions to write to the remote storage backend, including both reading and writing permissions for static files. Check the bucket settings in Backblaze B2 or Digital Ocean Spaces to confirm that they allow access and write permissions for your Django application. Test connectivity by manually uploading a static file to your remote storage backend using the provider's tools. This can help confirm that your application can connect to the storage backend successfully. Review Django logs for any error messages or warnings related to static file handling. This can provide clues to the underlying issue. By following these steps, you should be able to identify and resolve the issue with loading static files into your remote storage bucket. As a final resort, I'd suggest downloading and utilising the final project source code that was used for this video. It is available in the description (for clarity). Good luck!
@gofooddy5472
2 ай бұрын
@marklong2060 Were you able to solve it?
@marklong2060
2 ай бұрын
@@gofooddy5472 no I wasn't able to make it work. I resorted to storing the images to hard disk for now. For this particular app it works okay because its low traffic etc. Will need to revisit this issue later for sure.
@WhiteFontStudios
6 ай бұрын
you need to go through all of this just to render css and js files in your deployed django app??
@CloudWithDjango
6 ай бұрын
Hi, Also, media files, but yes it is a long process with Amazon S3.
@OasisFinder
8 ай бұрын
i have creates AWS account, websites ask me about my credit card details , and i choose free account tier out of 3 options. i need to know is this process free or i need to pay ?
@CloudWithDjango
8 ай бұрын
Hi, Please kindly read the article link guide for more insight.
@SyedIbrahim-77
8 ай бұрын
Is making a policy a necessary step? Because I watched some other tutorials and they did not create a S3 bucket policy
@CloudWithDjango
8 ай бұрын
Hi, Yes, it is necessary so that we can ensure that our bucket is public and the API action that we can perform upon our objects. Sure, you can upload objects without the policy, but you still need to be able to access it. This is why we use the policy.
@syedibrahim7894
8 ай бұрын
Okay, thank you so much! Excellent video btw :')
@CloudWithDjango
8 ай бұрын
My pleasure! I'm glad that you enjoyed the video, thank you! :)
@durgamokshitha333
9 ай бұрын
Can this process also be used for Django Rest Framework API ?
@CloudWithDjango
9 ай бұрын
Hi, The best way to know would be to test it and see
@durgamokshitha333
9 ай бұрын
@@CloudWithDjango Thanks for the reply. I have another question. Django Rest Framework API and Nextjs combination Is this process the same or different?
@CloudWithDjango
9 ай бұрын
My pleasure! The process of combining Django Rest Framework (DRF) API with Next.js is similar to integrating any frontend framework with a backend API. You would use Next.js to create the frontend, and DRF to develop the backend API. The communication between them typically involves making HTTP requests from Next.js to the DRF endpoints. However, the specific implementation details may vary based on your project requirements and architecture choices. Ensure proper CORS (Cross-Origin Resource Sharing) settings, handle authentication, and manage state as needed in your Next.js application.
@durgamokshitha333
9 ай бұрын
@@CloudWithDjangook thank you
@CloudWithDjango
9 ай бұрын
My pleasure!
@maxsll3372
6 ай бұрын
its paid !!
@CloudWithDjango
6 ай бұрын
Hi, Yes, Amazon S3 is paid depending on your usage limit
@legends_talk1
2 ай бұрын
But there is a free tier
@learnwithkilter3432
9 ай бұрын
Great guidance, But I am watched the video 10 times 🥲🥲 But i am still getting this error An error occurred (AccessControlListNotSupported) when calling the PutObject operation: The bucket does not allow ACLs. This is the policy included in my Bucket { "Version": "2012-10-17", "Id": "Policy1700*******99", "Statement": [ { "Sid": "Stmt170*******49", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::ump-ai-tutor-v1/*" } ] }
@learnwithkilter3432
9 ай бұрын
Oww Now its fixed i changed AWS_DEFAULT_ACL = "public-read" to AWS_DEFAULT_ACL = None
@CloudWithDjango
9 ай бұрын
Hi, Thank you for your feedback! :) This error is occurring because you have different needs and expectations with your application regarding the use of a PutObject. You can try to check the following and add the PutObject API action in your JSON policies as such: { "Version": "2012-10-17", "Id": "Policy1700*******99", "Statement": [ { "Sid": "Stmt170*******49", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject", "s3:PutObject" // Add this line to allow the PutObject action ], "Resource": "arn:aws:s3:::ump-ai-tutor-v1/*" } ] }
Пікірлер: 98