[Django]-Is there a good database backend in Django for Amazon DynamoDB?

13πŸ‘

I don’t think there are any Django DynamoDB projects out there that allow you to use the Django ORM while using DynamoDB underneath.

But depending on your case, you may still be able to simply ignore the ORM portion of Django and use DynamoDB directly (via boto or PynamoDB or similar ).

In my case, I use a mix. I keep all my users and other models that are mostly read only on Postgres (RDS) and Django ORM, but use DynamoDB for models that require heavy writes ( using pynamodb).

I still get to use the views, templates or even add an API via Django-rest-framework. What I lose is the admin pages ( that I don’t need for these models ) and other features the ORM gives you but I have been happy with the result anyway.

πŸ‘€dkarchmer

3πŸ‘

I have not used this one personally but the guy who developed it is a frequent contributor to boto and his work has always been of high quality.

https://bitbucket.org/maxnoel/dynamodb-mapper

πŸ‘€garnaat

1πŸ‘

Here is a project on github called django dyanmodb sessions which looks incomplete (no closing of sessions), but promising. Here is a link to an announcement from one of the authors.

πŸ‘€jedierikb

Leave a comment