Django with Apache2 on Ubuntu

2008-11-07 Thread project2501

Hi,
  I got Django to work behind Apache2 with mod_python, but had some
questions for the experts.

1) Is there an easy way to log stdout without re-writing all my output
statements? What about python logging?
2) Is there a good way in Django to put startup code when deployed in
Apache that only gets run once per server restart? I build some
indexes that are used by my Django apps but it only needs to be done
at initialize time once.

thanks,
Darren
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



App initialized twice? plus, debugging tips.

2008-11-06 Thread project2501

Hi,
  I'm new to django and have a couple questions.

I have a __init__.py in my app and try to declare a simple module wide
variable. I noticed __init__.py is called twice when I run "python
manage.py runserver". Is this normal?

Also, I tried to run "manage.py runserver" through my Wing IDE in
debug mode, but it failed. Is there a convenient way to debug django
apps?

thank you!!

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---