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 g

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 d