On Sun, 2006-10-01 at 10:21 +0000, anil wrote: > Dear Malcolm thanks a lot > I found this in webpy for generating cheetah templates by default > I call > web.render('index.html')
That should act as a substitute for Django's Template.render() call. So wherever you would normally retrieve a Django template and then render it, you would call this function and pass the result to an HttpResponse constructor. > Can you tell me where I can use this in Django or what part of django i > need to use. > As you can see I m fairly a newbie There seems to be a conceptual item you are missing here. You basically need to achieve two things: (1) produce a string that is a combination of your template, in whatever format, and your data and (2) send that string back to the user. You are wanting to do (1) with Cheetah and HttpResponse and the links I gave you in the previous email show you how to do (2). It strikes me you are going about this in a very strange way. I initially hoped you were wanting to use Cheetah because you were already very familiar with it. However, if you are not familiar with either Django or Cheetah then you *must* spend some time learning both. learn to use Django with the built-in template system for a little bit until you get used to it. Live and breath the Cheetah manual for a week, or as long as it takes, until you are familiar with that. Only then, are you going to be able to merge the two things together. I don't know why you have chosen not to use Django's templating language, but you seem to have done so without a lot of experience with Django itself. So bear in mind that that has now made your job harder because you now have two new things to learn instead of one. You also have to work harder to help us help you by doing a lot more experiments in order to be able to demonstrate and explain the precise problems you are having. All that being said, everybody has to start somewhere and sometimes a big challenge is exactly the motivation a person needs. So if you are going into this with your eyes wide open, there is no reason it won't work. Best wishes, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---