Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility with boto3 and cookiecutter? #204

Open
jamescosmin opened this issue Jun 26, 2020 · 5 comments
Open

compatibility with boto3 and cookiecutter? #204

jamescosmin opened this issue Jun 26, 2020 · 5 comments

Comments

@jamescosmin
Copy link

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.

@richardbarran
Copy link
Owner

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.

@jamescosmin
Copy link
Author

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.

@richardbarran
Copy link
Owner

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.

@jamescosmin
Copy link
Author

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.

@hvitis
Copy link
Contributor

hvitis commented Jul 13, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants