Set database engine to sqlcipher in Django

喜你入骨 提交于 2019-12-25 11:58:12

问题


I am trying to use sqlcipher with my Django application. My current database is sqlite. I am following this official github instruction to integrate sqlcipher successfully :

https://github.com/codasus/django-sqlcipher

In, settings.py I have already added sqlcipher in INSTALLED_APPS . I am having problem to set database engine to sqlcipher.backend . Previously it was,

'ENGINE': 'django.db.backends.sqlite3',

I changed it to,

'ENGINE': 'sqlcipher.backend'

Error is showing,

Error was: No module named backend.base

Probably, I am missing something.

来源:https://stackoverflow.com/questions/45665996/set-database-engine-to-sqlcipher-in-django

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!