On Tue, Jun 3, 2008 at 4:01 PM,  <[EMAIL PROTECTED]> wrote:
>
> now i see, ty very much. django seems awesome though now that it is
> working for me.
>
> On 4 Juni, 00:57, "Colin Bean" <[EMAIL PROTECTED]> wrote:
>> On Tue, Jun 3, 2008 at 2:00 PM,  <[EMAIL PROTECTED]> wrote:
>>
>> > im running part 2 of the tutorial right now and im inside the admin.
>> > when connecting to localhost it is soooo slow, why?
>>
>> Well, the tutorial does say:
>>
>> "You've started the Django development server, a lightweight Web
>> server written purely in Python. We've included this with Django so
>> you can develop things rapidly, without having to deal with
>> configuring a production server — such as Apache — until you're ready
>> for production.
>> Now's a good time to note: DON'T use this server in anything
>> resembling a production environment. It's intended only for use while
>> developing. (We're in the business of making Web frameworks, not Web
>> servers.)"
>>
>> So the development server is a pure python implementation that has
>> been written with simplicity in mind rather than performance.  In
>> addition to this, it reloads your code with every request so any
>> changes you make are immediately reflected.  So yes, it's going to be
>> slow... You don't really quantify how slow it is or if it's unusable
>> for you.
>>
>> If you're looking for a faster local deployment, your best bet is
>> probably to setup apache, but you'll need to restart that every time
>> you want changed code to take effect.
>>

On a second reading I realized that I oversimplified how Apache needs
to be restarted.  There's several django hosting mechanisms to choose
from -- mod_python requires a restart for new code to take effect, but
there's various WSGI setups automatically will reload / restart when
your code is changed:
http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

Anyhow, that's overkill for a beginning user, but there it is :)  Glad
django is working out for you!

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to