Lurnby
Lurnby copied to clipboard
Decouple from Amazon
For storing image content the app currently sends images to amazon s3. This is fine for the web-app version, but if the app is meant to run locally, then it's not necessary.
There should be a flag somewhere to determine if this is supposed to be a web app or an offline app and removes the Amazon dependency if that's the case.
Think this can likely be solved by doing the following.
- Adding an env variable such as
UPLOAD_IMAGES=1
- Keeping the upload to Amazon code behind an
if os.environ.get('UPLOAD_IMAGES'):
- changing
img src
to point to the on disk location of the saved images.