Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create flask project using IntelliJ IDEA 12 Ultimate Edition?

I have IntelliJ IDEA 12 Ultimate Edition and I was watching this video on Youtube where they have demonstrated to create Flask using PyCharm 2.6

As far as I understand Python Plugin gives same features as PyCharm because they are built form same codebase.

How can I create a flask project with IDEA 12 Ultimate Edition?

like image 510
daydreamer Avatar asked Mar 17 '13 15:03

daydreamer


2 Answers

To clarify wmora's answer, in IntelliJ IDEA, installing the Python plugin is not 100% the same as having PyCharm, and the distinction is one that Jetbrains seems to have struggled with (e.g. usually documentation refers to the language-specific IDE and not to IDEA, and the menu-items/commands/etc. are not the same).

With IDEA, if the Python plugin is installed, you can create a new project and select "Python" as the language. This may show a few additional libraries and frameworks, e.g. "Django", "Google App Engine (Python)", and "SQL Support" (???), but notably NOT Flask. However, the next screen has the option to "Create project from template", and when checked, you should be able to select the "Flask Project" template.

And THAT's when it fails silently (per Polyakoff's comment). The editor doesn't even open up a window. See the bug: https://youtrack.jetbrains.com/issue/PY-25666

like image 196
Everett Avatar answered Sep 23 '22 12:09

Everett


If you have the Python plugin already installed, a "Flask Project" option will be available under "Python" when creating a new project.

I created a virtualenv before creating my Flask project and set it up as the project's SDK.

Hope it helps.

like image 26
wmora Avatar answered Sep 21 '22 12:09

wmora