Skip to content

Instantly share code, notes, and snippets.

@chrisking
Created December 23, 2013 20:42
Show Gist options
  • Select an option

  • Save chrisking/8104229 to your computer and use it in GitHub Desktop.

Select an option

Save chrisking/8104229 to your computer and use it in GitHub Desktop.
example config for sandman
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