Halting Django's dev server via page request?

Posted by Ben Blank on Stack Overflow See other posts from Stack Overflow or by Ben Blank
Published on 2010-06-05T23:32:10Z Indexed on 2010/06/05 23:32 UTC
Read the original article Hit count: 211

Filed under:
|

I'm looking at writing a portable, light-weight Python app. As the "GUI toolkit" I'm most familiar with — by a wide margin! — is HTML/CSS/JS, I thought to use Django as a framework for the project, using its built-in "development server" (manage.py runserver).

I've been banging on a proof-of-concept for a couple hours and the only real problem I've encountered so far is shutting down the server once the user has finished using the app. Ideally, I'd like there to be a link on the app's pages which shuts down the server and closes the page, but nothing I see in the Django docs suggests this is possible.

Can this be done? For that matter, is this a reasonable approach for writing a small, portable GUI tool?

© Stack Overflow or respective owner

Related posts about python

Related posts about django