Created
December 23, 2013 20:42
-
-
Save chrisking/8104229 to your computer and use it in GitHub Desktop.
example config for sandman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sandman import app | |
| app.config['SQLALCHEMY_DATABASE_URI'] = 'db_account_info_here' | |
| from sandman.model import register, activate, Model | |
| class User(Model): | |
| __tablename__ = "ppv_user" | |
| class DataSet(Model): | |
| __tablename__ = "dataset" | |
| class Run(Model): | |
| __tablename__ = "perflab_dataset" | |
| __endpoint__ = 'runs' | |
| register(User) | |
| register(DataSet) | |
| register(Run) | |
| activate() | |
| app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment