Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Root path Flask IDE
#1
Hi,
I have a problem running an app built with Flask in PyCharm, but it is working correctly in the shell.
It seems to come from a root path, does anyone know how to fix it ?
Thanks,
Here is the code : the classical

#! /usr/bin/python
# -*- coding:utf-8 -*-
 
from flask import Flask
import os
app = Flask(__name__)
 
@app.route('/')
def index():
    return "Hello !"
 
if __name__ == '__main__':
    app.run(debug=True)
Reply


Messages In This Thread
Root path Flask IDE - by vandelouw - Oct-30-2018, 09:29 AM
RE: Root path Flask IDE - by buran - Oct-30-2018, 09:58 AM
RE: Root path Flask IDE - by vandelouw - Oct-30-2018, 10:01 AM
RE: Root path Flask IDE - by vandelouw - Oct-30-2018, 05:20 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020