On 5/8/07, kahless <[EMAIL PROTECTED]> wrote: > > i guess the signal API would be one possibility ? to simply send out > specific signals like 'render_profile' and 'post_profile' where > multiple application could listen to and respond accordingly ?
You can do what you want using a combination of Python's class introspection functions and Django's model index (django.db.models.get_app(), get_model(), etc). Define a setting that specifies the name of the class that provides the UserProfile model, then when you need to reference the UserProfile model, load it dynamically using __import__. You can take a similar approach for any utility method supporting the UserProfile - say, a factory for generating a UserProfile form. Define an interface, put the name of the factory method in a setting, and dynamically load the function as required. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---