importdA Django based miniframework, inspired by sinatra | |
Download |
importd Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Amit Upadhyay
- Publisher web site:
- http://amitu.com
importd Tags
importd Description
Django is awesome, but starting a new project in it is a pain. amitu.d is inspired from ruby's sinatra. Hello world Django project:.. code-block:: python from importd import d d(DEBUG=True) @d("/") def idx(request): return "index.html" @d("/post/< int:post_id" >/") def post(request, post_id): return "post.html", {"post_id": post_id}To run it:.. code:: python foo.pyThis will start the debug server.To run it in production:.. code:: gunicorn foo:dAn example app: https://github.com/amitu/importd/blob/master/foo.pyProduct's homepage
importd Related Software