Login or Sign up

Django Error: cannot import name MyModel circular import

Posted by: skyl on Oct. 26, 2009

You might one day encounter a funny error with your django project.

(env):$ ./manage.py runserver
/../env/lib/python2.6/site-packages/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha
Error: cannot import name YourModelNameHere

(env):$

Just that, no traceback, no nothing. You may have a circular import. Check the models module from where you are importing YourModelNameHere. Check import errors in that module.

Comments on This Post:

Please Login (or Sign Up) to leave a comment