Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KiteConnect not working with flask #18

Closed
shipdcare opened this issue Jun 1, 2017 · 3 comments
Closed

KiteConnect not working with flask #18

shipdcare opened this issue Jun 1, 2017 · 3 comments

Comments

@shipdcare
Copy link

importing kiteconnect statement causes an unknown error that does not enable flask to create a server.

Sample code-

from flask import Flask, render_template, redirect
from kiteconnect import KiteConnect

app = Flask(name)

@app.route("/")
@app.route("/app")
def index():
return "Hello World"

if name == "main":
app.run(debug=True)

@vividvilla
Copy link
Member

I have tried your example and it seems to be working. Here is my version (there were few errors in your code)

from flask import Flask, render_template, redirect
from kiteconnect import KiteConnect

app = Flask(__name__)

@app.route("/")
@app.route("/app")
def index():
        return "Hello World"

if __name__ == "__main__":
        app.run(debug=True, port=6999)

@shipdcare
Copy link
Author

Hi, the script is running without any errors, but the server is not starting. I cannot visit localhost:6999 .

@vividvilla
Copy link
Member

Its running on my machine. Here is the screenshot.
screen shot 2017-06-02 at 10 29 49 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants