On Dec 29, 10:48 am, Briel <[email protected]> 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-file (and display it).
> You could just write a bit of html for it, in your base html, that you
> extend.
well... i've got flatpages running as well and need the function
called on those pages too... not just static template pages.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---