On Mar 31, 1:43 am, Thomas Guettler <h...@tbz-pariv.de> wrote:
> Hi,
>
> If you only change the method, but no model, you don't need to call 'syncdb'.
>
> If your webserver is configured correct, then you just need to hit ctrl-r 
> (reload
> in firefox).
>
> This should work if you use the development server of django. If
> you use apache withmod_wsgiyou need to set  maximum-requests=1. This will 
> reload
> you code for every request. Of course the production server should have a 
> different
> value.

Don't use 'maximum-requests=1' for mod_wsgi daemon mode processes. It
is a really bad idea and has performance which is much worse than CGI.
This is because of the way that Apache parent process only polls once
a second for child processes that have shutdown.

What you instead should use is the documented mechanisms for implement
development server like reloading. See:

  http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

  http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html
  http://blog.dscpl.com.au/2009/02/source-code-reloading-with-modwsgi-on.html

Graham


>  HTH,
>    Thomas
>
> Miguel schrieb:
>
>
>
> > Hi all,
>
> > I have a model where I have defined a method :
>
> >     def print_html(self):
> > [...]
>
> > I have changed this method but no change is observed in the web page. It is
> > still working the old model method.
> > How can update this?
> > python manage.py sqlall
> > and
> > python manage.py syncdb
>
> > doesn't seem to work. Could anybody help me?
>
> --
> Thomas Guettler,http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to