Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
django_couchdb_utils
Advanced tools
django-couchdb-utils provide implementations for various Django backend (auth, sessions, cache, etc) that use CouchDB (through couchdbkit) instead of the relational databases supported by Django's ORM.
This project's goal is to replace the RDBMS specific backends used in Django
with CouchDB
_ using Couchdbkit
_.
Currently it has a moderately tested:
Auth backend
_Session backend
_Cache backend
_Email Cache backend
_ wraps another email backend and caches mails that could not be sentCouchDB
_ store (requires django-openid
_)To use this library, install Couchdbkit and reference it in your INSTALLED_APPS
in settings.py
.. _CouchDB
: http://couchdb.apache.org/
.. _Couchdbkit
: http://couchdbkit.org/
.. _Auth backend
: http://docs.djangoproject.com/en/dev/topics/auth/#other-authentication-sources
.. _Session backend
: http://docs.djangoproject.com/en/dev/topics/http/sessions/#configuring-the-session-engine
.. _Cache backend
: http://docs.djangoproject.com/en/dev/topics/cache/#using-a-custom-cache-backend
.. _Email Cache backend
: http://docs.djangoproject.com/en/dev/topics/email/
.. _django-openid
: http://github.com/simonw/django-openid/master/tree
General Instructions
Reference the django_couchdb_utils
apps into your INSTALLED_APPS
in settings.py
::
... "django_couchdb_utils.auth", "django_couchdb_utils.sessions", "django_couchdb_utils.cache", ...
To the COUCHDB_DATABASES
(which is used by Couchdbkit) add the couchdb utils apps that you plan to use::
('django_couchdb_utils_auth', 'http://127.0.0.1:5984/authdb'), ('django_couchdb_utils_sessions', 'http://127.0.0.1:5984/sessionsdb'), ('django_couchdb_utils_cache', 'http://127.0.0.1:5984/cachedb'), ...
If your do not use Couchdbkit otherwise, just add the following to your settings.py
::
COUCHDB_DATABASES = ( ('django_couchdb_utils_auth', 'http://127.0.0.1:5984/somedb'), ... )
As the library doesn't make any assumptions about the Ids of the CouchDB objects it stores, it is safe to use it with an already existing database.
To enable authentication support add the AUTHENTICATION_BACKENDS
attribute in settings.py
like::
AUTHENTICATION_BACKENDS = ('django_couchdb_utils.auth.backends.CouchDBAuthBackend',)
To enable cache support add the CACHE_BACKEND
attribute in settings.py
like::
CACHE_BACKEND = "cache.couch://"
To enable sessions support add the SESSION_ENGINE
attribute in settings.py
like::
SESSION_ENGINE = "django_couchdb_utils.sessions.couchdb"
To enable the CouchDB email caching backend, set the EMAIL_BACKEND
attribute in settings.py
like::
EMAIL_BACKEND = "django_couchdb_utils.email.CouchDBEmailBackend"
COUCHDB_EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
FAQs
django-couchdb-utils provide implementations for various Django backend (auth, sessions, cache, etc) that use CouchDB (through couchdbkit) instead of the relational databases supported by Django's ORM.
We found that django_couchdb_utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.