nalzok
nalzok

Reputation: 16107

PyCharm launching Django console for Flask app

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?

Upvotes: 6

Views: 742

Answers (1)

atwalsh
atwalsh

Reputation: 3722

You can disable Django support for your project here:

Settings > Language & Frameworks > Django

Upvotes: 7

Related Questions