error in manage.py add_missing_subscriptions

Hello!

I'm having a problem when running python manage.py add_missing_subscriptions. The error is:

File "/var/www/project/src/apps/askbot/mail/__init__.py", line 15, in < module > from askbot.conf import settings as askbot_settings

ImportError: cannot import name settings

I'v entered into debug (putting a pdb.set_trace in line 14, and when I execute from askbot.conf import settings as askbot_settings it gives me the same error. This is normal, but when I execute python manage.py runserver 0.0.0.0:8001, the same line (from askbot.conf import settings as askbot_settings) in the debug, doesn't raise any error. I've looking at the sys.path, and paths are the same in both cases.

I don't know where is the problem. Any help will be appreciated.

Thanks

RubenDjOn's avatar
1
RubenDjOn
asked 2014-04-15 18:55:40 -0600, updated 2014-04-15 21:08:15 -0600
edit flag offensive 0 remove flag close merge delete

Comments

Ok, It seems that is a problem with circular import. I need to look at my others apps code and see wich one is causing this situation. Thanks.

RubenDjOn's avatar RubenDjOn (2014-04-15 21:03:56 -0600) edit
add a comment see more comments