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.

Bobby Roberts skrev:
> 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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to