
import pymongo

connection = pymongo.MongoClient("mongodb://localhost")
db = connection.vcf_explorer

import database
import parse_vcf
import filter_vcf
import query


import pymongo

import config #config.py

connection = pymongo.MongoClient(host=config.MONGODB_HOST, port=config.MONGODB_PORT)
db = connection[config.MONGODB_NAME]

import database
import parse_vcf
import filter_vcf
import query

Set mongodb settings using config.py
Set mongodb settings using config.py

  
  import pymongo
  
- connection = pymongo.MongoClient("mongodb://localhost")
- db = connection.vcf_explorer
+ import config #config.py
+ 
+ connection = pymongo.MongoClient(host=config.MONGODB_HOST, port=config.MONGODB_PORT)
+ db = connection[config.MONGODB_NAME]
  
  import database
  import parse_vcf
  import filter_vcf
  import query
  
Set mongodb settings using config.py
## Code Before:

import pymongo

connection = pymongo.MongoClient("mongodb://localhost")
db = connection.vcf_explorer

import database
import parse_vcf
import filter_vcf
import query

## Instruction:
Set mongodb settings using config.py
## Code After:

import pymongo

import config #config.py

connection = pymongo.MongoClient(host=config.MONGODB_HOST, port=config.MONGODB_PORT)
db = connection[config.MONGODB_NAME]

import database
import parse_vcf
import filter_vcf
import query
