How to change project type?

I am sure this is really simple, but I couldn't figure it out.
Say I create an empty project and then wish to change to a Flask (or appengine) project. Is there a simple way to do this?
4 comments
Comment actions Permalink
Flask is not a special project type in PyCharm. Simply start using Flask in your code, and PyCharm's Flask features will be enabled automatically.

The App Engine integration can be enabled under Settings | App Engine.
0
Comment actions Permalink
This is great. However, when I run a project (Empty) with Flask, it runs and exits with 0 instead of starting the test webserver. Is there a command or configuration setting I can use to activate the webserver from Pycharm?
0
Comment actions Permalink
PyCharm runs Flask applications just in the same way as you run them from the command line. Please make sure that your Flask application contains the following code:

if __name__ == '__main__':
    app.run()
0
Comment actions Permalink
Awesomes - many thanks and happy new year.
0

Please sign in to leave a comment.