realms-wiki/realms/lib/services.py

8 lines
203 B
Python
Raw Normal View History

2013-10-05 00:42:45 +03:00
import redis
2014-01-14 01:07:13 +02:00
from flask.ext.sqlalchemy import SQLAlchemy
2013-12-03 22:09:57 +02:00
from realms import config
2014-01-14 01:07:13 +02:00
db = SQLAlchemy()
2013-10-05 00:42:45 +03:00
# Default Cache connection
2013-12-03 01:50:19 +02:00
cache = redis.StrictRedis(host=config.REDIS_HOST, port=config.REDIS_PORT)