2020欧洲杯时间表

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences any time.

Questions tagged [flask]

2020欧洲杯时间表 Flask is a lightweight framework for developing web applications using Python.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Css Error “GET /static/%20style.css HTTP/1.1” 404 - Using Pycharm 3.8.1

I have spent almost a day trying to figure out why my css file will not work with my html file. All of the stack overflow answers did not work for me. I would appreciate any help I can get at this ...
0
votes
0answers
5 views

send_from_directory runs even when flask is not working

I am trying to send a csv file to a client using flask.send_from_directory function. At first, the function worked without any problems, but then I noticed that when I change the file I want to send, ...
0
votes
0answers
9 views

Python Decorators, Flask, Args

I am wondering why when I go to the route '/al6759@school.edu/info', the console prints () al6759@school.edu Why is args empty even though user_info is sent a value? I tried to provide the least ...
0
votes
0answers
12 views

Errors with python form population

this is my first python application and i am following this tutorial. http://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-one. I seem to be having a problem with information i ...
0
votes
0answers
8 views

failing to install Flask package in pycharm

after press install package its failing and giving me this below error Looking in indexes: http://www.palletsprojects.com/p/flask/ Collecting Flask Could not find a version that satisfies the ...
0
votes
0answers
6 views

Why does my execution flow skip in flask app under gunicorn but not when using the built-in dev server?

My flask app skips code execution and goes straight to the return statement. What makes it especially weird is that it only does this when I run it via gunicorn, when the app is run using flasks's ...
0
votes
1answer
12 views

How to stop value of variable to reset in this simple FLASK page

Each time i click on button i would like to add some value to string and present it inside div. In the free time i try to write simple text adventure game in Python with Flask. Somehow after 4-5 ...
0
votes
0answers
10 views

Flask route doesn't seem to accept -'s in the routes

I'm trying to expose a .well-known directory to serve a file needed to enable apple pay on my site. Apple pay needs the following domain to be accessible: mydomain.com/.well-known/apple-developer-...
0
votes
0answers
7 views

Pip install flask_mysqldb getting error: ERROR: Command errored out with exit status 1:

I am working at the moment to make an application. I want to make a connection to my database by using flask_mysqldb. I am making my envoriment in flask. But when i try to download flask_mysqldb I am ...
0
votes
0answers
25 views

Why isn't my user comment saving to my sqlite database?

So I'm working on a project and I'm having trouble saving my 'user comment' from my React front-end into my sqlite database. When I try adding a comment in my POST from React, I have a few print ...
-1
votes
0answers
20 views

Trying to use username or email for login in Flask

I'm working through Corey Schafer's Flask Tutorial on YouTube and am trying to make changes as I go along. I am trying to make it so that on the login screen you can enter either the username or email....
-1
votes
1answer
13 views

Get 404 for js files

the header of my flask html template has these 4 lines: <link rel="stylesheet" href="{{ url_for('static', filename='bootstrap-4.3.1-dist/css/bootstrap.min.css') }}"> <link rel="...
0
votes
0answers
12 views

How to serve static files for use in a template in Flask? [duplicate]

I would like to serve two or more static files (in different directories), for use in a template. The template code is this. <video> <source src="/static/Vids/S{{s}}/S{{s}}-{{...
0
votes
1answer
17 views

Flask/Jinja2 error Encountered unknown tag 'endblock'

I'm starting to use Flask and I find myself standing on this next mistake: jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'endblock'. I don't know exactly where the error is, I've ...
0
votes
0answers
10 views

How to display model relations in flask-admin?

So I have two models: class Orders(db.Model): __tablename__ = 'orders' id = db.Column(db.Integer, primary_key=True) user_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=...

15 30 50 per page
1
2 3 4 5
2314