#🔒 how do I get flask to work on kubuntu?

5 messages · Page 1 of 1 (latest)

polar saddle
#

so I am working on this flask program for the flask course I am doing. Something about my configurations is different from what the instructor of this Udemy course assumes. My code runs but there's an issue with Flask. I did everything he said in the video but when I enter the flask run command, it doesn't do anything. I know if I run the python file it gets no errors.

greg@Windows:~/Documents/Python/Flask Course/Project_1_Microblog$ export FLASK_APP=app.py
greg@Windows:~/Documents/Python/Flask Course/Project_1_Microblog$ flask run
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: Failed to find Flask application or factory in module 'app'. Use 'app:name' to specify one.
greg@Windows:~/Documents/Python/Flask Course/Project_1_Microblog$ /bin/python "/home/greg/Documents/Python/Flask Course/Project 1: Microblog/app.py"

Here is a link to the video course:

https://www.udemy.com/course/web-developer-bootcamp-flask-python/learn/lecture/23393565#content

I'm on lecture 100.

Can someone help me out here? I'm not using Windows I'm using Ubuntu btw.

fallen skyBOT
#

@polar saddle

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

prisma elk
#

Can you post the contents of your app.py file?

fallen skyBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.