-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > If my site is under /var/www/html/python, with the settings file as / > var/www/html/python/foo/settings.py should I write, > SetEnv DJANGO_SETTINGS_MODULE foo.settings > (or) SetEnv DJANGO_SETTINGS_MODULE python.foo.settings
Python imports stuff based on the environment variable PYTHONPATH, which is similar to the UNIX PATH variable. If you have /var/www/html/ in your pythonpath, you'll import using python.foo.settings. It might be handy to put /var/www/html/python on the pythonpath though. But this is just a matter of taste. By the way, the python stuff does not need to be in the html root. Just make sure the apache user has the right permissions. ~Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGyD/TSyMaQ2t7ZwcRAs2BAKCuCFCKxNd/B6oXPeiUrf6KOAYH3gCg32LU MdHFW9QBft/JoVX0i2NEXDI= =WB/u -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
begin:vcard fn:Christian Hoeppner n:Hoeppner;Christian email;internet:[EMAIL PROTECTED] note:I am a freelance coder specialized in web applications and their deployment at a small or medium scale. x-mozilla-html:FALSE version:2.1 end:vcard