Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from toolbox.lib.utils import parse_mongouri
- # MongoDB
- #MONGODB_URL = os.getenv('MONGODB_URL', 'mongodb://127.0.0.1/collect-staging')
- MONGODB_URL = os.getenv('MONGODB_URL','mongodb://parse:lifeisawesome@35.200.160.252:27017/collect-dev')
- #MONGODB_URL = os.getenv('MONGODB_URL', 'mongodb://192.168.1.22:27017/collect-production')
- DB_NAME = parse_mongouri(MONGODB_URL).get('database')
- # Elasticsearch
- ES_URL = os.getenv('ES_URL', 'localhost:9200')
- RESPONSE_INDEX_VERSION = 1
- # Slack
- SLACK_URL = os.getenv('SLACK_URL')
- SLACK_ICON_URL = os.getenv(
- 'SLACK_ICON_URL', 'https://www.unitedwaynorman.org/sites/unitedwaynorman.org/files/toolbox.png'
- )
- # Administrative config
- USERNAME = os.getenv('USERNAME', 'aviral')
- PASSWORD = os.getenv('PASSWORD', 'aviral')
- # Collect API
- USER_VALIDATION_URL = os.getenv('USER_VALIDATION_URL',
- 'http://localhost:1337/api/v1/functions/checkFormAccessAndSupportUser')
- # Swagger
- HOST_URL = os.getenv('HOST_URL', 'http://localhost:8000')
- # API endpoint-specific constants
- COLUMN_HEADERS_USER_EMAIL_FUNNEL = [
- {
- "name": "s_no",
- "type": "integer",
- "friendly_name": "Serial Number"
- }, {
- "name": "name",
- "type": "string",
- "friendly_name": "Name"
- }, {
- "name": "email",
- "type": "string",
- "friendly_name": "Email"
- }, {
- "name": "signupDate",
- "type": "string",
- "friendly_name": "Signup Date"
- }, {
- "name": "verification",
- "type": "boolean",
- "friendly_name": "Verification"
- }, {
- "name": "form_count",
- "type": "integer",
- "friendly_name": "Form Count"
- }, {
- "name": "published_form_count",
- "type": "integer",
- "friendly_name": "Published Form Count"
- }, {
- "name": "template_form_count",
- "type": "integer",
- "friendly_name": "Template Form Count"
- }, {
- "name": "device_count",
- "type": "integer",
- "friendly_name": "Device Count"
- }, {
- "name": "response_count",
- "type": "integer",
- "friendly_name": "Response Count"
- }, {
- "name": "pricing_plan",
- "type": "string",
- "friendly_name": "Pricing Plan"
- }, {
- "name": "error",
- "type": "string",
- "friendly_name": "Error"
- }
- ]
- COLUMN_HEADERS_PRODUCT_FUNNEL = [
- {
- "name": "start_date",
- "type": "date",
- "friendly_name": "Start Date"
- }, {
- "name": "end_date",
- "type": "date",
- "friendly_name": "End Date"
- }, {
- "name": "web_sign_up_count",
- "type": "integer",
- "friendly_name": "Web Signups"
- }, {
- "name": "verified_web_signups",
- "type": "integer",
- "friendly_name": "Verified Web Signups"
- }, {
- "name": "atleast_one_form",
- "type": "integer",
- "friendly_name": "Atleast one form"
- }, {
- "name": "atleast_one_published_form",
- "type": "integer",
- "friendly_name": "Atleast one published form"
- }, {
- "name": "atleast_one_device_added",
- "type": "integer",
- "friendly_name": "Atleast one device added"
- }, {
- "name": "atleast_one_response",
- "type": "integer",
- "friendly_name": "Atleast one response"
- }
- ]
Add Comment
Please, Sign In to add comment