Hi, I'm having a problem where Python modules are being imported multiple times and I cannot figure out why.
I have a simple, standard set up created with the following commands: django-admin.py startproject mytest cd mytest manage.py startapp app1 I would like to run some initialization code before manage.py runs execute_manager() and some uninitialization after it is done: if __name__ == "__main__": import app1 app1.init() execute_manager(settings) app1.uninit() Unfortunately, app1/__init__.py gets loaded both here with the "import app1" line and also imported later when app1 is initialized by the framework. Has anyone else experienced this problem? Is there a way to fix this? Environment: * Python 2.5.2 * Ubuntu 8.04 * Django 0.96.2 Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---