How safe is it to rely on thirdparty Python libs in a production product?
I’m new to Python and come from the write-everything-yourself world of PHP (at least this is how I always approached it).
How safe is it to rely on thirdparty Python libs in a production product?
I’m new to Python and come from the write-everything-yourself world of PHP (at least this is how I always approached it).
Why does flask use Jinja2 and not xpath?
I’m just starting out with python and since I’m coming from a PHP background (thus have to adjust my mind to wrap around new concepts) one major question still stands without answer – why does Flask need a template engine?
How do i display a pdf in html form from other folder not in Static folder in flask
D:/
|PDF_folder
|file1.pdf
|file2.pdf
|
App Folder
|
|static
|templates
|index.html
|form.html
|app.py
I have a separate pdf folder from where i want to display pdf file in “form.html”. The form contains others fields and menu include file. Please help.
convert a Django code to Flask. # Error: [1] ERROR RuntimeError: NG0900: Error trying to diff ‘[object Object]’
Due to specific reasons, I’m required to convert a Django code to Flask. I’m a complete beginner in Flask, so here’s my Django code:
Converting from a cgi based project to Flask
I have multiple python scripts on a VPS running Apache. These use cgi so I make http calls from my front end (VBA in Excel). I believe that this architecture is not optimal. I have installed Flask and am deciding how to call these scripts from Flask.
proper way to design a class for flask that will be initialized when the flask app starts and will be accessed by most routes?
I’m designing a flask app that will need to call a custom class to read a database and then initialize and load docker containers based on the information retrieved from the db (flask-SQLAlchemy). This class (object) will also need to be accessed by several different routes for re-configuring/controlling the docker containers
Monitoring client activity with Flask
I have a page in Flask that will be requested by a client every couple of seconds, If the client doesn’t request the page after couple of minutes I want to flag this client as disconnected and will run some code. I don’t want to use web-sockets in this case. I was thinking of implementing this by creating a list of clients with ‘last activity’ variable that will be updated every time the client request the page, a thread will check the list every couple of minutes if the ‘last activity’ of the client is too old.
Flask blueprint not working when registering a blueprint in another file, I get a 404
I have a main file with the following
Flask Proxy Endpoint Returning Errors 408 and 405
I’m building a proxy endpoint in Flask that should handle various HTTP methods (GET, POST, PUT, DELETE). However, I’m encountering two errors when I send requests: