Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 495 Bytes
#!/usr/bin/env python
import os, site
# Add the app dir to the python path so we can import manage.
wsgidir = os.path.dirname(__file__)
site.addsitedir(os.path.abspath(os.path.join(wsgidir, './')))
import treestatus.app, treestatus.model as model
application = treestatus.app.wsgiapp({
'here': os.curdir,
'sqlalchemy.url': 'sqlite:///treestatus.db',
'memcached.servers': 'localhost:11211',
'debug': False,
})
# Create any db tables we need
model.DbBase.metadata.create_all()
Jump to Line
Something went wrong with that request. Please try again.