Re: How do I get django working without having to manually run the server?

40 views
Skip to first unread message

Mike Dewhirst

unread,
Jun 16, 2012, 8:27:35 PM6/16/12
to django...@googlegroups.com
On 17/06/2012 7:30am, Laurence MacNeill wrote:
> Ok... I'm still learning this stuff here, and I'm confused about one
> thing... Well, many things, actually, but only one thing that I'll
> ask about here.
>
> During the tutorial I have to type "python manage.py runserver" in
> order to see my django pages in a web-browser. Obviously, I don't
> want to do this for anything but the tutorial... In fact, I don't
> even want to do this for the tutorial -- I have apache and mod_wsgi
> already running on this machine, so why won't those things just
> automatically serve up these django pages I'm creating? What more do
> I need to do to get apache and mod_wsgi to server my django pages?

https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/

Go right ahead. It is a good thing to do. But you still need manage.py
runserver for development because it is specially designed to prioritise
debugging over security and performance. By default it uses port 8000 so
you can have Apache serve on port 80 or something else and have both
servers running the same code for comparison of output at the same time.
You enjoy the difference when Apache says "500" and manage.py runserver
says where your code is awry.

>
> Thanks,
> Laurence MacNeill
> Mableton, Georgia, USA
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/XyTCXN8L3FIJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Kurtis Mullins

unread,
Jun 17, 2012, 12:20:23 AM6/17/12
to django...@googlegroups.com
But you still need manage.py runserver for development because it is specially designed to prioritise debugging over security and performance.

Really? I could see the use for it when running an actual debugger but otherwise, I'm not so sure there's any benefit to using it. Do you have any sources or more information on this? This is new information to me. Thanks!

Phang Mulianto

unread,
Jun 17, 2012, 6:48:33 AM6/17/12
to django...@googlegroups.com
The python manage.py runserver    is intended for fast development time to kick start the apps.

you don't need to prepare the apache wsgi stack first, especialy if you want to try something new like django newcomer. it's took time and knowledge to prepare the apache wsgi.

but it still an option if you don't want use the runserver command.
if you don't want to type it everytime you start the development, make it run as service in your devel machine.

it's bundled in django as a development web server, not for production web server.

so make it what you like ... it's in the documentation..



On Sun, Jun 17, 2012 at 12:20 PM, Kurtis Mullins <kurtis....@gmail.com> wrote:
But you still need manage.py runserver for development because it is specially designed to prioritise debugging over security and performance.

Really? I could see the use for it when running an actual debugger but otherwise, I'm not so sure there's any benefit to using it. Do you have any sources or more information on this? This is new information to me. Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.

Kurtis Mullins

unread,
Jun 17, 2012, 3:04:58 PM6/17/12
to django...@googlegroups.com
I did forget one important (and very useful feature) that the runserver contains -- the automatic reload whenever you modify files. I was just curious if it provided more debugging information than otherwise would be provided based upon that statement.

Àlex Pérez

unread,
Jun 17, 2012, 3:42:06 PM6/17/12
to django...@googlegroups.com
One question,

The automatic reload whenever you modify the files. There are an alternative to do that with mod_wsgi? or anything else?

Thanks!

2012/6/17 Kurtis Mullins <kurtis....@gmail.com>



--
Alex Perez
alex....@bebabum.com
 
 bebabum be successful

c/ Còrsega 301-303, Àtic 2
08008 Barcelona
http://www.bebabum.com
http://www.facebook.com/bebabum
http://twitter.com/bebabum

This message is intended exclusively for its addressee and may contain
information that is confidential and protected by professional privilege. 
If you are not the intended recipient you are hereby notified that any 
dissemination, copy or disclosure of this communication is strictly prohibited by law.

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si no es vd. el destinatario indicado,
queda notificado que la utilización, divulgación y/o copia sin autorización 
está prohibida en virtud de la legislación vigente.

Le informamos que los datos personales que facilite/ha facilitado pasarán a
formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene 
por finalidad gestionar las relaciones con usted. 
Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la dirección de e-mail lo...@bebabum.com
Reply all
Reply to author
Forward
0 new messages