Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 317 Bytes
import djng
def hello(request):
return djng.Response('Hello, world ' * 100)
def goodbye(request):
return djng.Response('Goodbye, world ' * 100)
app = djng.Router(
(r'^hello$', hello),
(r'^goodbye$', djng.middleware.GZip(goodbye)),
)
if __name__ == '__main__':
djng.serve(app, '0.0.0.0', 8888)