Project:
project/
: A directory named with the project's name which stores the actual Python package__init__py
app.py
settings.py
urls.py
models/
__init__.py
baes.py
handlers/
Project:
project/
: A directory named with the project's name which stores the actual Python package
__init__py
app.py
settings.py
urls.py
models/
__init__.py
baes.py
handlers/
import json | |
import tornado.web | |
class JsonHandler(BaseHandler): | |
"""Request handler where requests and responses speak JSON.""" | |
def prepare(self): | |
# Incorporate request JSON into arguments dictionary. | |
if self.request.body: | |
try: |