Re: Storing Template Vars in Database and rendering

2010-02-26 Thread Timothy Kinney
Also, take a look at the template Tag feature. http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#howto-custom-template-tags(scroll down about half way). It allows you to define a template (such as a dialog object) and call it from another template, thereby inserting it where you

Re: Storing Template Vars in Database and rendering

2010-02-26 Thread HumanSimulator
Thank you for the help. I'm going to test it when I get a chance. Now that you've said it, it should have been clear to me from the start. On Feb 26, 11:38 am, Tom Evans wrote: > On Fri, Feb 26, 2010 at 4:25 PM, HumanSimulator > > > > > >

Re: Storing Template Vars in Database and rendering

2010-02-26 Thread Tom Evans
On Fri, Feb 26, 2010 at 4:25 PM, HumanSimulator wrote: > I apologize if this has been discussed before but I did search and > wasn't able to find what I'm looking for. > > Anyways, I'm currently writing a very simplistic text adventure style > game in Django and what

Storing Template Vars in Database and rendering

2010-02-26 Thread HumanSimulator
I apologize if this has been discussed before but I did search and wasn't able to find what I'm looking for. Anyways, I'm currently writing a very simplistic text adventure style game in Django and what I'm looking for is to store a template var in the database and then render it. Like say I