Django run configuration

Why dou you run django server with --noreload option? This is really annoying.    

0
2 comments

Hello Evgeny,

Why dou you run django server with --noreload option? This is really

annoying.

Because we haven't yet figured out a way to correctly stop a running Django

app if the --noreload option is not used. Without this option, Django spawns

two different Python processes (one to watch for reload and another for the

actual server) and stopping from IDEA only stops the first one.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Because we haven't yet figured out a way to correctly stop a running Django

app if the --noreload option is not used. Without this option, Django spawns

two different Python processes (one to watch for reload and another for the

actual server) and stopping from IDEA only stops the first one.

Here is an excellent article explaining how the 2 processes work from the creator of mod_wsgi.

http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html

0

Please sign in to leave a comment.