move get_main_database() to mygpo.db.couchdb
[mygpo.git] / mygpo / db / couchdb / __init__.py
blob3186aee4992f205e815790f69e30efb3d06ffbf2
2 from django.conf import settings
4 from couchdbkit import *
7 def get_main_database():
8 db_url = settings.COUCHDB_DATABASES[0][1]
9 return Database(db_url)
12 def get_database(user=None):
13 return get_main_database()