On 3/29/07, topper <[EMAIL PROTECTED]> wrote: > Still, $HOME is a normal UNIX environmental variable, and because > Django does use those in other places (i.e django_settings), a user > could think that environment variables are accessible from Django. And > when the user is told in Template loader postmortem that '$HOME/ > some_file' does not exist, the information is in a way wrong or at > least confusing.
Python can access environment variables -- you just need to do it through the standard Python method of reading out of 'os.environ', e.g.: import os TEMPLATE_DIRS = ( os.environ['HOME'] + '/web/my_site/templates', ) -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---