Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm launching Django console for Flask app

Tags:

For whatever reason, PyCharm thinks my Flask project is a Django project, and thus launches a Django console instead of a Python console in the toolbar:

enter image description here

The project interpreter is configured properly:

enter image description here

Here is my project hierarchy, if it's relevant:

.
├── LICENSE
├── README.md
├── app
│   ├── __init__.py
│   ├── email.py
│   ├── main
│   │   ├── __init__.py
│   │   ├── errors.py
│   │   ├── forms.py
│   │   └── views.py
│   ├── models.py
│   ├── static
│   │   └── favicon.ico
│   └── templates
│       ├── 404.html
│       ├── 500.html
│       ├── base.html
│       ├── index.html
│       └── mail
│           ├── new_user.html
│           └── new_user.txt
├── config.py
├── data-dev.sqlite
├── data-test.sqlite
├── manage.py
├── migrations
│   ├── README
│   ├── alembic.ini
│   ├── env.py
│   ├── script.py.mako
│   └── versions
│       ├── 38c4e85512a9_initial_migration.py
├── requirements.txt
└── tests
    ├── __init__.py
    └── test_basics.py

Just because there is a module called manage.py doesn't mean I'm working on a Django project!

How can I fix this?

like image 802
nalzok Avatar asked Sep 24 '17 07:09

nalzok


1 Answers

You can disable Django support for your project here:

Settings > Language & Frameworks > Django

like image 121
atwalsh Avatar answered Sep 30 '22 00:09

atwalsh