I\'m a beginner in django and I got a lot of errors when using template module from django. The following works from the python shell:
from django import templat
Of course the @Sudipta's answer works correctly but (just for the future) for the explanation you can also visit the "Creating Template Objects" -> "A special Python prompt" section in Django book
Creating Template Objects
A special Python prompt