If I'm understanding your question correctly, you could write a function similar to gen_pop_pattern (http://svn.zyons.python-hosting.com/trunk/zilbo/common/counter/urls.py ) and then include it ala urlpatterns += gen_pop_pattern( models='Conversation', extra_context=context, template_name='forum/conversation_popular.html' ) this allows us on vc-chat to have the 'popular' page display in various parts of our url space eg http://vc-chat.com/popular/ -- everything http://vc-chat.com/forum/popular/ -- just forums http://vc-chat.com/aggy/popular/ -- just feeds then if i wanted to add another function say .. popular in the last week, I would add a line to gen_pop_pattern and I would get the functionality in 3 places. eg On 07/08/2006, at 7:57 AM, Ahmad Alhashemi wrote:
-- Ian Holsman http://VC-chat.com It's what the VC's talk about --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~--- |
- Re: How can I use variables in included URLConf's befor... Todd O'Bryan
- Re: How can I use variables in included URLConf's ... Ahmad Alhashemi
- Re: How can I use variables in included URLCon... Todd O'Bryan
- Re: How can I use variables in included URLConf's ... Ian Holsman
- Re: How can I use variables in included URLCon... [EMAIL PROTECTED]
- Re: How can I use variables in included URLCon... Ahmad Alhashemi
- Re: How can I use variables in included URLConf's ... Malcolm Tredinnick