Re: Standalone template language

2005-11-24 Thread paolo
The first import in django/core/template/__init__.py wants to obtain DEFAULT_CHARSET and TEMPLATE_DEBUG from the settings file. Being DJANGO_SETTINGS_MODULE not set, an EnvironmentError exception is raised. If you handle this exception with try/except, defining yourself default values for DEFAULT_

Re: Standalone template language

2005-11-24 Thread Kenneth Gonsalves
On Thursday 24 Nov 2005 11:01 pm, Paolo wrote: > Today I've been able to use the template language on its own with > a simple "trick". what is the trick? -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Re: Standalone template language

2005-11-24 Thread Paolo
2005/11/24, Cheng Zhang <[EMAIL PROTECTED]>: > > It's possible, based on my limited knowledge of Django. I think such > usage is more like using a Python library. > In your case, you need to set the environment variable > DJANGO_SETTINGS_MODULE as shown in tutorial 1, e.g. export > DJANGO_SETTINGS

Re: Standalone template language

2005-11-24 Thread Cheng Zhang
It's possible, based on my limited knowledge of Django. I think such usage is more like using a Python library. In your case, you need to set the environment variable DJANGO_SETTINGS_MODULE as shown in tutorial 1, e.g. export DJANGO_SETTINGS_MODULE=myproject.settings - Cheng On Nov 24, 2

Standalone template language

2005-11-24 Thread paolo
I wonder if it's possible to use Django's template engine outside of Django. I tried to import Template from django.core.template but Python interpreter complains about undefined DJANGO_SETTINGS_MODULE. Thanks