Pablo Estrada Pablo Estrada - 26 days ago 10
Python Question

Configuring an Existing Django Project on Pycharm

I´m starting to use Django with Pycharm IDE and have succesfully configured my first project.

However, I tried to add a new existing project to Pycharm and when trying to change the Run Configuration to use the manage.py of my secondProject(GuatepediaLocal), I don´t get an option to select it on the dropdown menu. When I try to run the project, it keeps running the PollSite manage.py runserver and not GuatepediaLocal´s manage.py runserver

Can anyone help me to solve this issue and configure an already existing Django Project on pycharm?

enter image description here

Answer

After some research I found that on the settings window of Pycharm I must add Django support to my project

enter image description here

That enabled the project on the dropdown menu. After that, I just added on the enviroment variables the correct path to my project´s settings.py.

enter image description here

Hope this helps someone someday :)

Comments