Alejandro Veintimilla
Alejandro Veintimilla

Reputation: 11523

Pycharm not recognizing Django project

I've seen similar questions but they don't solve my problem.

I have a correctly installed django project. I haven't being able to make Pycharm recognize it. I can't get file name completions (i.e static files), imports from the project apps aren't recognized and neither are urls tags, can't run the server ... How can I solve this?

Upvotes: 0

Views: 2446

Answers (1)

Alejandro Veintimilla
Alejandro Veintimilla

Reputation: 11523

The problem was that I wasn't selecting the correct folder when opening the project. I opened the whole virtualenv folder with Pycharm cause I wanted quick access to the activate file in /bin where I keep my environment variables.

The solution was to delete the .idea folder and open the specific django project folder. I thought there was a workaround to this but there wasn't. The question still remains if there is a way to add the activate file in the /bin directory of the virtualenv to the project, even if it is outside the project root.

Upvotes: 1

Related Questions