Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django DynamoDB Database backend

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!

like image 394
Foxocube Avatar asked Jul 26 '12 22:07

Foxocube


People also ask

Can Django work with DynamoDB?

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.

Is DynamoDB a backend?

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.

Can Django work with NoSQL?

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.

Can I use DynamoDB as relational database?

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.


1 Answers

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.

like image 61
Alasdair Avatar answered Sep 23 '22 17:09

Alasdair