django-photologue icon indicating copy to clipboard operation
django-photologue copied to clipboard

compatibility with boto3 and cookiecutter?

Open jamescosmin opened this issue 4 years ago • 5 comments

I am having a very hard time figuring out the AWS S3 settings for Photologue. I am using cookiecutter (https://github.com/pydanny/cookiecutter-django) to generate my project and it is already preset with django-storages and boto3. How can I get this to work and upload the images to S3. I have 3 settings file: base, local and production - the AWS settings are in production.py. How can I set it up so I can test that the files are actually uploaded to S3 in development. Please help, I have been failing miserably after reading the documentation over and over again. I just need a simple to understand example.

jamescosmin avatar Jun 26 '20 19:06 jamescosmin

Have you followed the docs at https://django-photologue.readthedocs.io/en/stable/pages/installation.html#amazon-s3?

I personally don't use S3 much - these docs were provided by a contributor - but when I followed the docs myself and tried it out, it worked for me.

richardbarran avatar Jun 26 '20 20:06 richardbarran

Hey Richard,

Thank you for prompt reply. Yes, I have followed the docs numerous times and just couldn't get it to work. Could you please generate a simple django project using cookiecutter and attempt a S3 upload with photologue? I would greatly appreciate it if you would get it to work and show me how.

jamescosmin avatar Jun 26 '20 20:06 jamescosmin

Hi & thanks for the reply, Sorry, as I've already said, I'm not really familiar with S3, I only set it up on my machine to test the PR that was sent it.

richardbarran avatar Jun 26 '20 20:06 richardbarran

Thanks Richard. Is there anyone else that can help? I don't know how this gallery is suppose to work with S3. Since the project requires django-storages and this requires boto3, can you please migrate from boto to boto3? The instructions are here: https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html Maybe that's why I cannot get it to work.

jamescosmin avatar Jun 26 '20 21:06 jamescosmin

@jamescosmin What error are you getting? I am trying to get it to work with boto3 and also failing.

hvitis avatar Jul 13 '20 13:07 hvitis