How do I write a single-file Django application?

后端 未结 11 1868
余生分开走
余生分开走 2020-12-14 19:29

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

11条回答
  •  失恋的感觉
    2020-12-14 19:56

    John's answer quoting the jngo app by Paul Bissex is impressive, but it's sadly broken under Django 1.7.

    I did a bunch of digging and created

提交回复
热议问题