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_MODULE=myproject.settings
Hi Cheng Zhang, perhaps my request wasn't clear enough. I'd like to use Django's template language in an application made in plain Python. Django doesn't appear at all in this scenario, so setting DJANGO_SETTINGS_MODULE has not much sense, because I'm not working with a Django project. Today I've been able to use the template language on its own with a simple "trick". My solution works well enough for my modest needings (though it is far from being an acceptable solution), but probably it will present side effects in some situation and *for sure* will limit the flexibility of Django's template system (i.e., it is not possible to define custom filters/tags) I hope some Django's developer or hacker will hear my voice and give some help ;-) Thanks for your attention.