Hi, I'm migrating my sites to django 1.2.1 however I noticed my cron scripts doesn't work anymore with the latest django version, I'm using the setup_environ method
http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/ and I tryed also the DJANGO_SETTINGS_MODULE environment variable method with the same results: 1) my cron script work fine in 1.1.1 but not in 1.1.2 and 1.2.1 2) the script exit with a trace such this: Traceback (most recent call last): File "syncdomains.py", line 16, in <module> from systemcp.domini.models import Domain, ProtectedArea, HttpErrors File "/home/nicola/workspace/SystemPanel/src/systemcp/domini/ models.py", line 3, in <module> from systemcp.utenti.models import UserInfo File "/home/nicola/workspace/SystemPanel/src/systemcp/utenti/ models.py", line 76, in <module> admin.site.register(UserInfo,UserInfoAdmin) File "/usr/lib/python2.6/site-packages/django/contrib/admin/ sites.py", line 90, in register validate(admin_class, model) File "/usr/lib/python2.6/site-packages/django/contrib/admin/ validation.py", line 20, in validate models.get_apps() File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line 115, in get_apps self._populate() File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line 64, in _populate self.load_app(app_name) File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line 78, in load_app models = import_module('.models', app_name) File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/home/nicola/workspace/SystemPanel/src/systemcp/ftp/ models.py", line 4, in <module> from systemcp.domini.models import Domain ImportError: cannot import name Domain this trace tipycally mean circolar import but I'm sure I don't have this error in my code, maybe I have to change my envirornment initialization for cron script since 1.1.2? If I execute the same imports I do in my cron script using python manage.py shell, they works fine so I think something changed in the environment initialization any hints? thanks drakkan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.