django runserver freeze after 10-15 min

68 views
Skip to first unread message

diadya_vova

unread,
Feb 15, 2008, 5:22:16 AM2/15/08
to Django users
Hello all,

I run small application with "manage.py runserver MyIP".
It used in small LAN by my coworkers.
And if we don't use it some minutes - it's freeze.
And don't respond.

I use Django 0.96 in "Instant Django" package.

Julien

unread,
Feb 15, 2008, 5:48:07 AM2/15/08
to Django users
Hi,

That command runs a server that is for development and testing
purposes only. It is not meant to run for a long time, although that
doesn't explain why it crashes after just 10 minutes.
To use it in production, you should consider a proper server like
Apache [http://www.apache.org/], which will do a much better job at
serving your application.

Google with "django+apache" and you should find some help on how to
set it up.

diadya_vova

unread,
Feb 15, 2008, 5:55:02 AM2/15/08
to Django users
Thank you for quick response!

Dev. server not crashes. It's stop to respond on browsers requests.
Yeah, Apache is better choice for this.
But I need this application to be portable. Without instalation.
Because this I use "Instant Django" and SQLite.

I tried Google before asking :)
And tried to search for "Instant Apache".
Is it exist Apache, that don't need to be installed?

Almir Karic

unread,
Feb 15, 2008, 6:17:29 AM2/15/08
to django...@googlegroups.com
On Fri, Feb 15, 2008 at 11:55 AM, diadya_vova <vova.s...@gmail.com> wrote:
>
> Thank you for quick response!
>
> Dev. server not crashes. It's stop to respond on browsers requests.
> Yeah, Apache is better choice for this.
> But I need this application to be portable. Without instalation.
> Because this I use "Instant Django" and SQLite.

the development server can not handle more than one request at once.
if one user is using your app, no one else will be able to.

--
error: one bad user found in front of screen

Julien

unread,
Feb 15, 2008, 6:43:41 AM2/15/08
to Django users
> But I need this application to be portable. Without instalation.
> Because this I use "Instant Django" and SQLite.

What do you mean by "portable". What are you exactly trying to
achieve?

Maybe you should consider something like Xampp [1], which makes it
easy to install apache.

[1] http://www.apachefriends.org/en/xampp.html

Steven Armstrong

unread,
Feb 15, 2008, 7:33:47 AM2/15/08
to django...@googlegroups.com
diadya_vova wrote on 02/15/08 11:55:

Have a look at this
http://www.gordontillman.info/Development/DjangoCherryPy

cjl

unread,
Feb 15, 2008, 10:23:51 AM2/15/08
to Django users
Hi:

As the guy behind Instant Django, I want to point out the disclaimer
on the home page:

"Be aware that Instant Django uses the built-in Django development web
server, so it should not be used for deployment of Django projects."

I wasn't joking, Instant Django is for learning Django basics, and can
not be used for deployment due to the limitations of the built in
development server.

There are portable versions of Apache for Windows, like:
http://www.apachefriends.org/en/xampp.html

There are also many others. I'm sure with some time and a little
persistence you could build a portable version of Django with this,
but I don't think anyone has done this yet, at least that I could
find.

-cjlesh

diadya_vova

unread,
Feb 16, 2008, 7:31:32 AM2/16/08
to Django users
> Have a look at thishttp://www.gordontillman.info/Development/DjangoCherryPy
Oh! Thank you.
It's looks like the best choice for me.

Joseph Heck

unread,
Feb 16, 2008, 3:43:14 PM2/16/08
to django...@googlegroups.com
The link to Gordon's page is much nicer than the hackery I did some
time back, but I thought I'd pipe in with a comment that the
WSGIServer from CherryPy works very nicely. We've embedded it into our
Django Queue Service project (I yanked the WSGIServer directly -
didn't need the rest:
http://code.google.com/p/django-queue-service/source/browse/trunk/qs/server.py)
and it works exceptionally well as a super-portable "run it anywhere"
application server.

(run it anywhere in my case means Win32, Linux, and MacOS X)

-joe

Malcolm Tredinnick

unread,
Feb 16, 2008, 3:47:23 PM2/16/08
to django...@googlegroups.com

On Sat, 2008-02-16 at 12:43 -0800, Joseph Heck wrote:
> The link to Gordon's page is much nicer than the hackery I did some
> time back, but I thought I'd pipe in with a comment that the
> WSGIServer from CherryPy works very nicely.

Seconded.

Mark Ramm pointed out to me at OSCON this year how self-contained
CherryPy's server was (one file in CherryPy 3) and I've been
experimenting with it a bit now. I'm quite impressed.

Malcolm

--
If it walks out of your refrigerator, LET IT GO!!
http://www.pointy-stick.com/blog/

Joseph Heck

unread,
Feb 16, 2008, 3:48:49 PM2/16/08
to django...@googlegroups.com
Mark was also the one who got me working it. :-) At OSCON 2007 as well...

diadya_vova

unread,
Feb 18, 2008, 7:18:06 AM2/18/08
to Django users
Big thanks to all folks!
It's works fine with CherryPy.
Reply all
Reply to author
Forward
0 new messages