简体   繁体   中英

How to use Arangodb in Django database?

I am starting developing a website, I want to use Django and Arangodb, but Django's built-in databases backend does not support arango. django documentation refers to this in database section:

You can use a database backend that doesn't ship with Django by setting ENGINE to a fully-qualified path (ie mypackage.backends.whatever).

but I could not find anything that bridges between Django and Arango. there is this repo in GitHub https://github.com/pablotcarreira/django-arangodb but this does not support new features of Django and Arango. I would like any thread to lead me to solve this problem.

You must first create an app for the database, for example dbms, and then implement all the required items such as crud in a.py file yourself and use the query class in the view you want and return it such as list,dict or... .

Note, In the __init __ file, be sure to create an object from the created class

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM