ImportError: Couldn't import Django. Are you sure it's installed and available on your PYT - Stack Overflow

as i made to apps accounts and core . in accounts model i have created custom user and in core i made u

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 0
Add a comment  | 

1 Answer 1

Reset to default 1

As 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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742421834a4440838.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信