On Sun, 2006-08-06 at 14:57 -0700, Ahmad Alhashemi wrote: > Hello everyone, > > My problem is like this. I have a main URLconf that will include > another, application specific, URLconf. In the application specific, > I'm preparing some querysets to pass to some generic views. > > The problem is that the querysets I need to make in the application > URLconf depend on variables defined in the main URLconf. > > How can I access the variables that were collected in the main URLconf > and use them to build my queryset?
Ian and Todd have already suggested a couple of approaches and, but you might also find the following documentation links useful: http://www.djangoproject.com/documentation/url_dispatch/#captured-parameters - you can pass reg-exp-captured variables through via include(...) http://www.djangoproject.com/documentation/url_dispatch/#passing-extra-options-to-include - you can also pass arbitrary dictionaries through via include(...) Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

