by Rich Jones, 10-17-2017.
New feature alert!
It's a thin wrapper around the normal Django SQLite database engine, but it automatically syncs the DB file with S3.
Obviously, this will cause problems for high-write applications, but for high-read applications without concurrent writes, it scales very well, it's trivial to set up, and it's orders of magnitudes cheaper that AWS RDS.
To use it, first install zappa-django-utils via
$ pip install zappa-django-utils
Add to your installed apps:
INSTALLED_APPS += ('zappa_django_utils',)
Then, in your Django project's
settings.py file, add the following:
And.. that's it!
This is a pretty quick hack, but I have some ideas about ways that can significantly improve this that I hope to implement in the not-too-distant future, so stay tuned for that.