Questions tagged [werkzeug]

Werkzeug is a WSGI utility library for Python. It's widely used and BSD licensed.

Werkzeug is a WSGI utility library for Python. It includes a debugger and fully featured request response headers. Also included is a set of HTTP utilities.

624 questions
-1
votes
1 answer

Not able to get output html page from flask

I am working in a simple flask project in colab. The whole program runs, and the run method produces a localhost URL. But I am not able to view the HTML site. It runs locally on my computer, but not in colab. The error is displayed below: I have…
G.MAHESH
  • 120
  • 11
-1
votes
1 answer

How to fix 'This page was not found' in Flask Python?

I'm setting a new server in Flask for an API. And a server to render the frontend in Flask also. Ok, so when i make a request to a determine API route i get this strange response 'This page was not found'. I it really seems to be every thing ok how…
-1
votes
1 answer

Flask FileStorage how get File size

I need an application that let users upload files to a public path where others can download it, but they are not allowed to upload a file that already exists. To check it faster i need to know the requested file's size and compare with file size of…
strymsg
  • 11
  • 1
  • 3
-2
votes
2 answers

How to make Python web application private?

I am developing Python back-end web application. Work-time management is also included into the application. The question that I am asking for is: Ex. we have 3 locations that will use this application (Canada, USA and Europe). I want to be able…
Fi3n1k
  • 863
  • 3
  • 12
  • 20
-2
votes
1 answer

Werkzeug password encryption

I am trying to encrypt a password using werkzeug library. I don't know what why i am getting pbkdf2:sha256:600000 for every any password i try to encrypt. Here's my code import werkzeug # from hashlib import pbkdf2_hmac x =…
-2
votes
2 answers

When installing Pipfile there is a collision of dependency version of werkzeug, werkzeug<1.0 from zappa, werkzeug>2.0 from flask

When installing the Pipfile i'm getting the error 'ERROR: Could not find a version that matches werkzeug<1.0,>=2.0' There are incompatible versions in the resolved dependencies: werkzeug<1.0 (from zappa==0.51.0) werkzeug>=2.0 (from flask==2.0.1) MY…
-2
votes
1 answer

How to decrypt password which it is encrypted using generate_hash_password function in flask

I use generate_password_hash flask function to hash password and save it to database How can i unhash it again as a plain text to sent it as mail message to user who forget his/her password ?
Nagah Shinawy
  • 17
  • 1
  • 3
-3
votes
1 answer

Is Filestorage storage.read() open the file in binary mode?

I have looked into the source and documentation of werkzeug, it's nowhere specified what mode it's opened. Since the default open mode for normal file is text mode, it brings me the question. Earlier, I had a problem to save the data=storage.read()…
Kevin Q
  • 679
  • 1
  • 13
  • 19
-4
votes
1 answer

Check if a file already exists in a particular folder

I want, before uploading a file in image folder, to check if the file in the folder already exists or not. If the file already exists it should show a message. from flask import Flask, render_template, request from werkzeug import…
1 2 3
41
42