Support a surveyJS frontend with a mongodb backend
Project description
PATTAN-MONGO-SURVEY
Support a surveyJS frontend with a mongodb backend.
Configuration
crete an instance of a the pattan-mongo-survey class with a dictionary containing the following keys.
- MONGDB_USER
- MONGDB_PASSWD
- MONGDB_HOST
- MONGDB_DB
- MONGDB_SURVEY_COLLECTION - collection used to store survey questions
- MONGDB_DB_RESPONSE_COLLECTION - collection used to store survey responses
Documentation
Logging
pattan-mongo-survey creates its own logger (of the same name) which the calling application can configure.
from pattan_mongo_survey import MongoSurveyService
import logging
mongo_logger = logging.getLogger('pattan_mongo_survey')
mongo_logger.addHandler(logging.FileHandler('example.log'))
mongo_logger.setLevel(logging.DEBUG)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pattan_mongo_survey-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b1c09c7e8dbf896da67df8d8b6f391e66ff5e5b87c9850b7ebadc3e3f89c84e |
|
MD5 | 773ff31ec50079fed987707d66e0636c |
|
BLAKE2b-256 | 0c45620b12588908f432bd8827190a7bad7cca098b0d86b11de5ee12d8ac7a63 |
Close
Hashes for pattan_mongo_survey-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d50b881c823605b0eeb6a9082a07824fa5085126e370fba1071cfe39219c09a0 |
|
MD5 | 757102847fe11f7688bfd6bbbbd824e3 |
|
BLAKE2b-256 | 0256ab8e2b5682df35255b08357145c7ad4ed551fe4d9eaf993f715ead20a26b |