Well, sort of, I'm using django-storages to upload images to GCS. The tricky part I figured out is to use signed urls so that authenticated users can actually download the images from my bucket. For that I do use their API.
Hi Justin I am building a web application to share and upload videos (mobile and Desktop) using Django and Django Rest Framework. Is the content of this video relevant to my project ? !! Thanks.
hi, I have been following your videos recently. for this one, I have implemented and it works fine on localhost. but, when i deploy it to Heroku for testing, the uploading of tile is blocked by cross-origin policy of s3. so i get back the policy and url. whiling trying to transfer the file into s3, it is blocked. but localhost works. I have checked the bucket name on s3, the cors policy origin is set to "*" which means it should allow from all domains to work. any solution to this? anybody
Video is perfect. I have an issue if anyone can help me it would be very good for all of us. I can't run the code for Frankfurt region cause of it is using only signature v4. This sample is using signature v2. Also tried for Ohio region but again the same result. Could anyone help about this issue? Here is the response: InvalidRequestThe authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
I was able to fix the 400 error that I got by removing the region from the constructed URL in the FilePolicyAPI endpoint: url = '{bucket}.s3.amazonaws.com/'.format( bucket=AWS_UPLOAD_STORAGE_BUCKET_NAME )
+CodingEntrepreneurs: I don't think the User Policy is the reason for my 400s, since I copied that directly from your example (replacing the bucket name with that of my own)
This is the message I get when logging the xhr responseText: "The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256." It appears the problem was with the region (eu-central-1) of my bucket, which is apparently subject to a new signature version. The problem was solved when I switched to a us-east-1 bucket.
Yes. Please more videos on Django + AWS. I'm sure I'm not using full potential
Great to see another video from you!
Can you make a video on using channels or webscoket?
good tutorial...is there any other options on heroku to upload files rather than using s3 bucket...?
How can i use multiple buckets in my django and create path dynamically according to end users selection?
For the jquery section of the code. What is begin stored in the csrf token value ? Where is that coming from ?? In my case it is showing null.
Very good video. I think will be interesting to see video about library pygal for making chart.
Can you make a video on using AWS cloudfront?
+Ali Khundmiri thanks for the suggestion... can you add this to joincfe.com/suggest/?
No doubt S3 is ubiquitous. Would be interested to see a similar video for uploading to Google Cloud Storage as well.
+Evan Zamir interesting... have you used their API?
Well, sort of, I'm using django-storages to upload images to GCS. The tricky part I figured out is to use signed urls so that authenticated users can actually download the images from my bucket. For that I do use their API.
@@EvanZamir kda
hello, can you make a video on aws cognito, lambda api gateway authentication using python Django.
Hey, Justin, Please, make a video how to work with Jinja2 and Django
Hi Justin
I am building a web application to share and upload videos (mobile and Desktop) using Django and Django Rest Framework. Is the content of this video relevant to my project ? !! Thanks.
+Younes PhD Henni probably wouldn’t hurt to learn this
hi, I have been following your videos recently. for this one, I have implemented and it works fine on localhost. but, when i deploy it to Heroku for testing, the uploading of tile is blocked by cross-origin policy of s3. so i get back the policy and url. whiling trying to transfer the file into s3, it is blocked. but localhost works. I have checked the bucket name on s3, the cors policy origin is set to "*" which means it should allow from all domains to work. any solution to this? anybody
Justing you are the best , thank you
Video is perfect. I have an issue if anyone can help me it would be very good for all of us. I can't run the code for Frankfurt region cause of it is using only signature v4. This sample is using signature v2. Also tried for Ohio region but again the same result. Could anyone help about this issue? Here is the response:
InvalidRequestThe authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
I keep getting 400-errors from the AWS-server. Could anyone tell me how I can diagnose the reason behind that?
+S1rWakka I’m guessing your user policy isn’t correct
I was able to fix the 400 error that I got by removing the region from the constructed URL in the FilePolicyAPI endpoint:
url = '{bucket}.s3.amazonaws.com/'.format(
bucket=AWS_UPLOAD_STORAGE_BUCKET_NAME
)
+CodingEntrepreneurs: I don't think the User Policy is the reason for my 400s, since I copied that directly from your example (replacing the bucket name with that of my own)
+Ahmed: Removing the region didn't solve the problem for me
This is the message I get when logging the xhr responseText:
"The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256."
It appears the problem was with the region (eu-central-1) of my bucket, which is apparently subject to a new signature version. The problem was solved when I switched to a us-east-1 bucket.
I looked this up today...