# Path: datawire/default_settings.py
# DEBUG = True
# ASSETS_DEBUG = DEBUG
# APP_TITLE = 'datawire.local'
# APP_NAME = 'datwire'
# SECRET_KEY = env.get('SECRET_KEY', 'banana umbrella')
# SQLALCHEMY_DATABASE_URI = env.get('DATABASE_URL', 'sqlite:////Users/fl/Code/datawi.re/db.sqlite3')
# ALEMBIC_DIR = path.join(path.dirname(__file__), 'migrate')
# ALEMBIC_DIR = path.abspath(ALEMBIC_DIR)
# TWITTER_API_KEY = None
# TWITTER_API_SECRET = None
# CELERY_ALWAYS_EAGER = False
# CELERY_TASK_SERIALIZER = 'json'
# CELERY_ACCEPT_CONTENT = ['json']
# CELERY_TIMEZONE = 'UTC'
# CELERY_BROKER_URL = env.get('RABBITMQ_BIGWIG_URL',
#                             'amqp://guest:guest@localhost:5672//')
# CELERY_IMPORTS = ('datawire.queue')


import logging
from flask import Flask
from flask import url_for as _url_for
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.migrate import Migrate
from flask.ext.oauth import OAuth
from datawire import default_settings
# from kombu import Exchange, Queue
# from celery import Celery


logging.basicConfig(level=logging.DEBUG)

# specific loggers
logging.getLogger('requests').setLevel(logging.WARNING)
logging.getLogger('urllib3').setLevel(logging.WARNING)
logging.getLogger('amqp').setLevel(logging.INFO)

app = Flask(__name__, static_folder='../frontend')

# Path: datawire/default_settings.py
# DEBUG = True
# ASSETS_DEBUG = DEBUG
# APP_TITLE = 'datawire.local'
# APP_NAME = 'datwire'
# SECRET_KEY = env.get('SECRET_KEY', 'banana umbrella')
# SQLALCHEMY_DATABASE_URI = env.get('DATABASE_URL', 'sqlite:////Users/fl/Code/datawi.re/db.sqlite3')
# ALEMBIC_DIR = path.join(path.dirname(__file__), 'migrate')
# ALEMBIC_DIR = path.abspath(ALEMBIC_DIR)
# TWITTER_API_KEY = None
# TWITTER_API_SECRET = None
# CELERY_ALWAYS_EAGER = False
# CELERY_TASK_SERIALIZER = 'json'
# CELERY_ACCEPT_CONTENT = ['json']
# CELERY_TIMEZONE = 'UTC'
# CELERY_BROKER_URL = env.get('RABBITMQ_BIGWIG_URL',
#                             'amqp://guest:guest@localhost:5672//')
# CELERY_IMPORTS = ('datawire.queue')


# Path: datawire/core.py
import logging
from flask import Flask
from flask import url_for as _url_for
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.migrate import Migrate
from flask.ext.oauth import OAuth
from datawire import default_settings

# from kombu import Exchange, Queue
# from celery import Celery


logging.basicConfig(level=logging.DEBUG)

# specific loggers
logging.getLogger('requests').setLevel(logging.WARNING)
logging.getLogger('urllib3').setLevel(logging.WARNING)
logging.getLogger('amqp').setLevel(logging.INFO)

app = Flask(__name__, static_folder='../frontend')

app.config.from_object(default_settings)