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, li
Then what you need is not Django. What you need is exactly what micropy does.