django_couchdb_utils

biedt implementaties voor verschillende Django-backds
Download nu

django_couchdb_utils Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • BSD License
  • Naam uitgever:
  • Stefan Kogl
  • Uitgever website:
  • http://skoegl.net

django_couchdb_utils Tags


django_couchdb_utils Beschrijving

Biedt implementaties voor verschillende Django-backds DJANGO_COUCHDB_UTILS's doel is om de RDBMS-specifieke backdevers te vervangen die in Django met CouchDB wordt gebruikt met Couchdbkit.Curly heeft het een matig getest: - Auth Backend-Session Backend- Cache Backend- E-mail Cache Backend Wraps Nog een e-mailbackend en caches mails die niet kunnen worden verzonden OpenID Consumer Met CouchDB Store (vereist Django-OpenID) om deze bibliotheek te gebruiken, installeer CouchDBKIT en verwijs deze in uw geïnstalleerde_apps in Instellingen. Referentie De Django_Couchdb_utils-apps in uw geïnstalleerde_apps in Instellingen.py: ... "Django_couchdb_utils.auth", "Django_couchdb_utils.sessions", "Django_couchdb_utils.cache", ... naar de Couchdb_Databases (die wordt gebruikt door Couchdbkit) Voeg de Couchdb Utils-apps toe die u wilt gebruiken: ('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 '), ... Als je gebruikt geen couchdbkit anders, Voeg gewoon het volgende toe aan uw instellingen.py: couchdb_databases = (('django_couchdb_utils_auth', 'http://127.0.0.1:5984/somedb'), ...) Naarmate de bibliotheek geen aannames maakt over de ID's van De CouchDB-objecten die het winkelt, het is veilig om het te gebruiken met een reeds bestaande database. Om authenticatieondersteuning in te schakelen Voeg het kenmerk Authentication_backds toe in Instellingen.py-achtige: Authentication_backends = ('Django_couchdb_utils.auth.backends.couchdbaututbackend',) Om cache-ondersteuning in te schakelen Voeg het attribuut cache_backend toe in Instellingen.py: Cache.couch: / / "Om sessies-ondersteuning in te schakelen, voegt u de session_engineattribuut toe in Instellingen.py zoals: session_engine =" django_couchdb_utils.sessions.couchdb "om de CouchDB-e-mail Caching Backend in te schakelen, stel het e-mailyback-attribuut in in Instellingen.py LIKE: Email_Bedb_Util.Email. CouchDBemailBackend "# De backend die moet worden ingepakt door de Couchdb Caching Backend Couchdb_email_Backend = 'Django.core.mail.backends.filebased.emailbackend' Vereisten: · Python · Django


django_couchdb_utils Gerelateerde software