Re: need urls help

2008-12-29 Thread Daniel Roseman
On Dec 29, 10:58 am, Bobby Roberts wrote: > On Dec 29, 10:48 am, Briel wrote: > > > A solution, not sure if it's the best, would be to make a function in > > basicly any file, that generates a quote. Then you can import the > > function to every view you

Re: need urls help

2008-12-29 Thread Bobby Roberts
On Dec 29, 10:48 am, Briel wrote: > A solution, not sure if it's the best, would be to make a function in > basicly any file, that generates a quote. Then you can import the > function to every view you want and call it to get the random quote. > All you need then is to

Re: need urls help

2008-12-29 Thread Dj Gilcrease
This would be best dealt with by creating a inclusion template tag http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Mon, Dec 29, 2008 at 7:41 AM, Bobby Roberts wrote: > > hi group. > > I have an

Re: need urls help

2008-12-29 Thread Briel
A solution, not sure if it's the best, would be to make a function in basicly any file, that generates a quote. Then you can import the function to every view you want and call it to get the random quote. All you need then is to pass it to your html-file (and display it). You could just write a

need urls help

2008-12-29 Thread Bobby Roberts
hi group. I have an issue where I need a random quote to display on every page on my website. Writing the view is not a problem (at least I don't think it is), but how would I call the view on each page of my website in the urls file? --~--~-~--~~~---~--~~ You