Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
131 views
in Technique[技术] by (71.8m points)

python 3.x - django-admin command can't be run because files are not in the right place

So I thought I installed anaconda and Django correctly but I guess I didn't because my django-admin commands don't work. As you can see here, I have the file paths for a couple Django files all screwed up:

/Users/user/anaconda3/bin/django-admin
/Users/user/anaconda3/bin/django-admin.py
/Users/user/anaconda3/lib/python3.8/site-packages/Django-3.1.5.dist-info/*
/Users/user/anaconda3/lib/python3.8/site-packages/django/*

This makes it so I can't run any django-admin commands that I need to run to start a new project in PyCharm.

question from:https://stackoverflow.com/questions/65602781/django-admin-command-cant-be-run-because-files-are-not-in-the-right-place

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can try change the project structure in Pycharm settings


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...