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

Integration with django-storages (AWS S3) #146

Open
monkut opened this issue Jul 22, 2020 · 0 comments
Open

Integration with django-storages (AWS S3) #146

monkut opened this issue Jul 22, 2020 · 0 comments

Comments

@monkut
Copy link

monkut commented Jul 22, 2020

I use a non-standard configuration of django/zappa/django-storages to serve django apps from aws lambda and s3.

I'm currently trying to use django-bakery in combination with wagtail to generate static sites which are then sync'd to an s3 bucket to serve.

Currently the django-bakery build command appears to assume that everything is on the local file system.

However, when django-storages is used build command files with:

  File "/home/.../gTxZnR9B/lib/python3.8/site-packages/bakery/management/commands/build.py", line 105, in handle
    self.build_static()
  File "/home/.../gTxZnR9B/lib/python3.8/site-packages/bakery/management/commands/build.py", line 196, in build_static
    copy.copy_dir("osfs:///", self.static_root, self.fs, target_dir)
  File "/home/.../gTxZnR9B/lib/python3.8/site-packages/fs/copy.py", line 292, in copy_dir
    _dst_fs.makedir(_dst_path, recreate=True)
  File "/home/.../gTxZnR9B/lib/python3.8/site-packages/fs/osfs.py", line 340, in makedir
    raise errors.ResourceNotFound(path)
fs.errors.ResourceNotFound: resource '/tmp/build/{AWS S3 BUCKET PATH}' not found
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

1 participant