hasadna/anyway — pull request #141 by yosiat (2014-11-03 21:45:08+00:00)
Title: Config and db refactor

After sitting for hours and trying to fix login of facebook,
I decided to refactor the way we use configuration and database sessions.

Those are the changes in this commits:
1. Moving configuration to config file
2. Using init_flask in the main file
3. Removing unused imports and enabling base debug logging
4. Use the declarative way of sqlalchemy - http://flask.pocoo.org/docs/0.10/patterns/sqlalchemy/#declarative

As a result of this pull request:
1. Facebook login - works
2. Code is much nicer :)

BTW -
We must extract the "SECRET_KEY" and facebook keys to environment.