Is it possible to set up an AWS DynamoDB as the database backed for a Django server? If so, how would I go about doing this?
thanks!
DynamoDB is non-relational which I think makes it architecturally incompatible with an ORM like Django's. You can use any database if it has compatible ORM and configured properly in settings.py . For example MongoDB. @wowkin2 sure, you can use any ORM you want.
DynamoDB Storage Backend. The DynamoDB storage backend is used to persist Vault's data in DynamoDB table. High Availability – the DynamoDB storage backend supports high availability.
NoSQL databases are not officially supported by Django itself. There are, however, a number of side projects and forks which allow NoSQL functionality in Django.
If you design it properly, a single DynamoDB table can handle the access patterns of a legitimate multi-table relational database without breaking a sweat.
I think the answer is there's no easy way. Django supports relational databases, but DynamoDB is NoSQL.
There doesn't appear to be a backend for django-nonrel, an unofficial fork for non relational databases.
If you want to use amazon to host the database, you could use their RDS service and configure Django as you would for MySQL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With