Simple Event Map Flask web application, including SQLAlchemy, WTForms and Bootstrap, OAuth, and more...
$ git clone git://github.com/homoludens/EventMap.git
$ cd EventMap
$ sudo pip install virtualenv
$ virtualenv venv
$ . venv/bin/activate
pip install -r requires.txt
python main.py
$ deactivate
Change this in __init__.py for reseting password:
MAIL_USERNAME = '[email protected]',
MAIL_PASSWORD = 'your.password',
Although it is possible for a Flask app to be contained entirely within a single Python module, this project splits different functionality into different modules to facilitate maintainability. Below is a description of each module.
__init__.py
- Constructs the Flask app object and configures it. Imports the other modules to emulate a single-module application.config.py
- Contains the app configuration.forms.py
- Contains WTForms Form objects for use in views and templates.hooks.py
- Contains Flask and Jinja helper methods.models.py
- Contains the database model classes for SQLAlchemy.views.py
- Contains the app views.
python main.py
go to http://localhost:5000 to view application and to make fb login to work