On May 14, 10:03 am, Filip Gruszczyński <grusz...@gmail.com> wrote:
> > Best practice here would be to stop trying to use a webserver to do
> > things it wasn't intended for.
>
> > If you need a separate process/thread to run regularly and perform
> > some background processing, then put that code in a standalone script
> > and use a crontab entry to invoke the script.
>
> Even if it's an integral part of an app? And I would like to be able
> to access it easily from django testing framework, so it can be
> automatically tested every time I need it.

Neither of those things are contradicted by Russ's advice. It would
still be Django code, and you could still keep it within the app and
test it with the normal testing framework, but it would be a separate
script run by cron.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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