Re: I am not able to run the following code

2016-05-28 Thread Akhil Lawrence
Hi Madhusudhana, When you try to create the instance of Template, its looking for settings that is why you are getting error. *You cannot play in python shell without creating django project* Create the project and use django shell. The following code snippets may help you in creating project

Re: I am not able to run the following code

2016-05-26 Thread Gergely Polonkai
I don’t see any error here; what is the error message you see? Gergely Polonkai [image: https://]about.me/gergely.polonkai 2016-05-26 10:16 GMT+02:00 Madhusudhana H V : > I

I am not able to run the following code

2016-05-26 Thread Madhusudhana H V
I am trying to execute the following code. But I am getting error at step 2, namely ">>> t = template.Template('My name is {{ name }}.')" Kindly help me out of this. >>> from django import template>>> t = template.Template('My name is {{ name >>> }}.')>>> c = template.Context({'name': 'Adrian'