Or you can use djangothis[1].
$ pip install djangothis
$ cat > views.py
from importd import d
@d
def hello(request):
return d.HttpResponse("hello there")
^D
$ djangothis
Validating models...
0 errors found
February 18, 2014 - 16:43:31
Django version 1.6.2, using settings None
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Any html files would be automatically served, files in static folder in current folder will automatically be mapped to /static/ and so on.