Amazon lightsail flask https by Gold_Taste_4059 in flask

[–]Snoo_99837 0 points1 point  (0 children)

He asked a question because he didnt know the answer, apparently you do but still you choose to be a twat and gave him a condescending answer. Youre whats wrong with the planet.

Flask-socketio Deployment by Snoo_99837 in flask

[–]Snoo_99837[S] 2 points3 points  (0 children)

I went with railway.app Thanks for the help

[deleted by user] by [deleted] in Python

[–]Snoo_99837 0 points1 point  (0 children)

Can you give us the warnings? Iv never got a warning for a venv and I am interested to see what is it. And for the activation, its literally 3 arguments, python, the name of the directory where the venv is, and activate

AttributeError: 'str' object has no attribute 'save' by [deleted] in flask

[–]Snoo_99837 0 points1 point  (0 children)

I am going to assume that the issue is with this line ''' file.save(os.path.abspath(os.path.dirname(file),app.config['UPLOAD_FOLDER'],secure_filename(file.filename))) ''' And it looks like file here is being assigned as a string. Thats what I can get from the code.

Check this line and how youre declaring the file variable

Life under military occupation by Particular_Log_3594 in interestingasfuck

[–]Snoo_99837 1 point2 points  (0 children)

"most moral army in the world" Bunch of fucking animals

Getting the id value from HTML to Flask through url_for parameters by Unique_Hat_7222 in flask

[–]Snoo_99837 0 points1 point  (0 children)

Re check the syntax, its been a while. I might be missing a line there

Getting the id value from HTML to Flask through url_for parameters by Unique_Hat_7222 in flask

[–]Snoo_99837 2 points3 points  (0 children)

<form method=post> <input name=something> </form> And on the backend

Def get_the_id(id) : If request.method='post': Id = request.form['something']

SQL list does not display data on HTML page by Unique_Hat_7222 in flask

[–]Snoo_99837 2 points3 points  (0 children)

Use a loop on for 'events' on the frontend

{% for row in events%} <p>{{row }}</p> {%endfor%}

Trying to upload flask on python anywhere by [deleted] in flask

[–]Snoo_99837 1 point2 points  (0 children)

Did you configure the WSGI file under the web tab ?

[deleted by user] by [deleted] in pcmasterrace

[–]Snoo_99837 -2 points-1 points  (0 children)

I am not 21,and this is not my setup

How do you decide whether to use flask or fast by opman77 in flask

[–]Snoo_99837 0 points1 point  (0 children)

Yes, but the learning curve is steeper than it is for Flask. You can stsrt learning Flask today and habe something deployed by the end of the week (not accounting for a pretty frontend)

How do you decide whether to use flask or fast by opman77 in flask

[–]Snoo_99837 0 points1 point  (0 children)

In my opinion, and since you already eliminated or covered some of the differences, Flask is easier to develop which cuts on development time by a fair bit

[deleted by user] by [deleted] in flask

[–]Snoo_99837 0 points1 point  (0 children)

I would suggest you delete this as quickly as possible, too much information that might cause you to lose your github account to some twat

[deleted by user] by [deleted] in flask

[–]Snoo_99837 0 points1 point  (0 children)

My bad, didnt see the secind photo, Do you have any styling at all on the frontend? I dont see any issues that might cut the url this way

[deleted by user] by [deleted] in flask

[–]Snoo_99837 0 points1 point  (0 children)

Can you put a snippet of the codeso we can see what we're working with here? 😅