How do I write a single-file Django application?
Posted
by obvio171
on Stack Overflow
See other posts from Stack Overflow
or by obvio171
Published on 2009-08-19T04:58:30Z
Indexed on
2010/04/25
20:13 UTC
Read the original article
Hit count: 262
I want to write a very small Django application in a single file, requiring all the appropriate modules and stuff, and then be able to run that as a normal Python script, like this:
$ python myapp.py
You can assume I won't render HTML, so I don't need templates (I'll return JSON or some other auto-generated string).
© Stack Overflow or respective owner