django how to work with templates 
I'm practicing django now , and  there is a bug that i can't understand 

<code>
>>>from django import template<br>
>>> t = template.Template('hi')<br>
</code>
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

my question is 
why is this happening and how to fix it ?

thanks in advance 

django how to work with templates 
===

I'm practicing django now , and  there is a bug that i can't understand 

<code>
>>>from django import template<br>
>>> t = template.Template('hi')<br>
</code>
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

my question is 
why is this happening and how to fix it ?

thanks in advance 
