Created
April 5, 2016 19:53
-
-
Save tehasdf/78248b5b266b15420accdeae73c36efd to your computer and use it in GitHub Desktop.
This file contains 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 klein import Klein | |
app = Klein() | |
@app.route('/') | |
def index(request): | |
return 'foo' | |
# expose a 'resource' name for use with twistd web | |
resource = app.resource | |
# save as home.py | |
# run using: twistd -n web --class=home.resource |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment