On Jul 5, 10:12 am, thornomad <damont...@gmail.com> wrote: > Hi Daniel - > > Okay ... so, it looks like I could do this two ways (maybe more). > After reading:http://docs.djangoproject.com/en/dev/ref/templates/api/ > > 1. I could create my own context process and define it in > TEMPLATE_CONTEXT_PROCESSORS - > > 2. (maybe more straightforward) I could create a function in a view > that returns a dictionary of all the items (value/key pairs) in a > particular Model ... then pass that to the view when it gets process. > Then I could add/remove value/key pairs form the admin as needed. > > I think I may try out option 2, and see how it goes. Sounds easier, > anyway. >
Good search, Damon. The implementation with context processor is not so hard than in view one. If you want to use global anywhere i think it's a better approach. []s daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---