admin管理员组文章数量:1336660
as i made to apps accounts and core . in accounts model i have created custom user and in core i made userpreference model i want to import accounts.models customuser but it gives error above mention
i have tried the name in install app as accounts and not resolve
as i made to apps accounts and core . in accounts model i have created custom user and in core i made userpreference model i want to import accounts.models customuser but it gives error above mention
i have tried the name in install app as accounts and not resolve
Share Improve this question asked Nov 19, 2024 at 14:50 Muhammad UllahMuhammad Ullah 11 bronze badge 01 Answer
Reset to default 1As the helper message said, are you sure django is installed ? do you use virtualenv ? You can verify if django installed by :
django-admin --version
If you are using virtualenv make sure it has been activated. Otherwise, if django is installed but still not detected, try to add python libraries to PATH :
export PYTHONPATH=${PYTHONPATH}:/Installed/library/Python/to/site-packages
source ~/.bash_profile
版权声明:本文标题:ImportError: Couldn't import Django. Are you sure it's installed and available on your PYT - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742421834a2471813.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论