Skip to content
Myr

add note about syntax errors in custom scripts

Before adoption: this commit came in with the history the project adopted, so no landing records it.

mention pycharm version support

authored by David Lord · committed by David Lord · parent 72115ec · Browse files · 1 file+13 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−3 removed

  • other:+13 added−3 removed

1 file+13 added−3 removed

modified:docs/cli.rst+13 added-3 removed
353 unmodified lines
354355 $ pip install -e .356 $ wiki run357358.. admonition:: Errors in Custom Scripts359360 When using a custom script, if you introduce an error in your361 module-level code, the reloader will fail because it can no longer362 load the entry point.363364 The ``flask`` command, being separate from your code, does not have365 this issue and is recommended in most cases.366367.. _console script: https://packaging.python.org/tutorials/distributing-packages/#console-scripts368369370PyCharm Integration371-------------------372364The Flask CLI features aren't yet fully integrated into the PyCharm IDE,365so we have to do a few tweaks to get them working smoothly. These366instructions should be similar for any other IDE you might want to use.373Prior to PyCharm 2018.1, the Flask CLI features weren't yet fully374integrated into PyCharm. We have to do a few tweaks to get them working375smoothly. These instructions should be similar for any other IDE you376might want to use.377378In PyCharm, with your project open, click on *Run* from the menu bar and379go to *Edit Configurations*. You'll be greeted by a screen similar to380this:
41 unmodified lines