On Fri, Sep 10, 2010 at 6:42 AM, Javier Guerra Giraldez <jav...@guerrag.com> wrote: > On Thu, Sep 9, 2010 at 4:02 PM, Alex Gaynor <alex.gay...@gmail.com> wrote: >> So how does this work? Where do args come from? > > args (for lack of a better name) is the same dictionary passed as the > second part of the tuple in the INSTALLED_APPS list. > > when Django loads each app, if the entry in INSTALLED_APPS is a tuple, > the first member is the app name, and the second one is made available > to the app as 'args'.
Yes - but you're glossing over the important part. You say args is "made available" - how? Based on your example: > class Favorite(models.Model): > item = ForeignKey(args[‘fave’]) args must be in the global namespace, which means you have to have: from somewhere import args before your model definition. What is the 'somewhere'? Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.