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 want and call it to get the random quote.
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 pass it to your html-fil
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 issue where I need a r
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 bi
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 rec
5 matches
Mail list logo