gitenberg-dev / giten_site

django repo for running the GITenberg website
http://www.gitenberg.org
40 stars 5 forks source link

Uploading covers to S3 #75

Closed bdr99 closed 6 years ago

bdr99 commented 6 years ago

This PR implements using a FileField to store covers in Amazon S3. When a book is sent to the /books/post endpoint, the web server downloads the cover image from the book's Github repo (using the _repo and covers properties in the YAML), and then uploads it to the S3 bucket in the bookcovers directory, storing it in the database in a FileField. Included in this PR is a database migration to create the FileField.

bdr99 commented 6 years ago

I've now completed this PR and it is ready for merging.

eshellman commented 6 years ago

deployed to production