Is it safe to run a flask server in a development environment?

I have a project that I have to present on a Zoom call for my AP Computer Science class. I have a flask site that I am running off of my laptop onto a port forward. When I run the server it says:

WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off 

I only plan to run this for a couple of hours, and it doesn’t need to be particularly efficient, but I don’t want to open my computer up to attack. (I know it’s very dangerous to run it in debug mode like this). The web app doesn’t have any sensitive data to be stolen, but I wanted to make sure I wasn’t opening my machine to remote code execution, or anything like that.

Does an Iron Flask (5e) work on a creature that is immune to Charm?

The Iron Flask states, “You can use an action to remove the flask’s stopper and release the creature the flask contains. The creature is friendly to you and your companions for 1 hour and obeys your commands for that Duration. If you give no commands or give it a Command that is likely to result in its death, it defends itself but otherwise takes no Actions. At the end of the Duration, the creature acts in accordance with its normal disposition and Alignment.”

Now my issue with this comes from the following incident that just occurred in my past session for Baldur’s Gate: Descent into Avernus. The players traversed the Scab prior to entering the Bleeding Citadel to find the Iron Flask amongst the deceased Night Hag’s obejects in her lair. They released the Fiendish flesh golem and killed it due to it not being their’s and attacked them so says the module. They still held onto it after the wizard identified it and realized its potential for demons if anything. So they eventually came across the diggers trying to dig out the Crokek’toeck. They killed them and reached the beast themselves to capture it in the Iron Flask instead. The bit I’m concerned with is they intend to use the creature as a trump card and have it serve them in battle for the hour use.

What I don’t understand is that the item doesn’t explicitly state that this is a charm on the creature to force its friendly position towards the party and adhere to their commands. The crokek’toeck has immunity to charm and confuses me as I presume the Iron Flask technically charms said captured entities to obey their temporary master(s). Due to the fact the item neglects to state this; do I proceed with the crokek’toeck being immune to the friendly nature once it pops out and proceeds to flee, attack, etc the party, or is this Flask meant to override that immunity and it works as they think it would, therefore obeying the party? I’m seeking a logical answer prior to flavored suggestions.

How long does the additional fire damage of an oil flask last?

Here’s the text of an oil flask:

Oil usually comes in a clay flask that holds 1 pint. As an action, you can splash the oil in this flask onto a creature within 5 feet of you or throw it up to 20 feet, shattering it on impact. Make a ranged attack against a target creature or object, treating the oil as an improvised weapon. On a hit, the target is covered in oil. If the target takes any fire damage before the oil dries (after 1 minute), the target takes an additional 5 fire damage from the burning oil. You can also pour a flask of oil on the ground to cover a 5-foot-square area, provided that the surface is level. If lit, the oil burns for 2 rounds and deals 5 fire damage to any creature that enters the area or ends its turn in the area. A creature can take this damage only once per turn.

The description provides a duration that oil burns while poured onto a surface, but not for oil that’s lit while splashed onto a creature. Does a creature covered in oil take the additional 5 fire damage every time it takes fire damage for the one-minute duration until the oil dries, or only the first time?

5e is usually pretty literal about this, and it doesn’t say ‘the first time the target takes fire damage,’ so I’m inclined to think it’s the latter. But that seems pretty powerful for adventuring gear that costs a single silver piece, even if it does take an action to set up.

Flask en localhost permite pasar variables entre routes, pero en produccion borra la data entre consultas. soluciones sin BD?

tengo una webapp en flask, la trabaje probando en localhost y me di cuenta que los datos entre consulta se iban almacenando (trabaje con lista de datos) y base todo el trabajo en esa modalidad, ahora cuando hice un deploy de la app, me di cuenta que entre cada consulta, flask borra esos datos (las listas se reinician sin datos) por lo que la app no funciona, se que lo ideal es ocupar base de datos, pero los datos que manejo son muy variables, por lo que no me sirve almacenarlos, solo trabajo con ellos entre las consultas. hay alguna forma de hacer un deploy y evitar ese reinicio? o tener alguna solucion para evitar la perdida de la información de esas listas que se van generando?? gracias”

Flask, доступ к расширениям, обьявленным create_app через Blueprint

Имеется примерно такой файл init.py:

def create_app():     app = flask.Flask(name)     avatar = flask_avatar.Avatars(app)     return app 

В произвольном блюпринте user необходимо обратиться к методу обьекта avatar, ранее объявленного в create_app() Каким способом это можно сделать?

Service worker / caching a whole API in a Flask app?

I’m building a small scale app based on the Flask micro framework. In it, I have a service worker that caches the basic shell of my app (HTML, CSS and JS). However, I have dynamic content that is updated when some event occurs (i.e. click on a button which sends a request to the API endpoint, the backend does a bit of filtering and then it sends the processed data back to the UI).

How can I approach the caching of this API and is that possible at all? One way I thought of was to cache request by request until, gradually, I cache all of the possible responses. However, I’m not sure if there is another solution to make my app more accessible when in offline mode.

How do I link my python code into HTML without using flask (it doesn’t work on my computer)?

I’m thinking of making a GitHub website with python, but I’m not sure how to link python code into HTML.

I’ve tried several tutorials and searched through 3 pages of google search results (you know I’m desperate once I’ve done that). Please help me!

How do I link my python code into HTML without using flask (it doesn’t work on my computer)?

I’m thinking of making a GitHub website with python, but I’m not sure how to link python code into HTML.

I’ve tried several tutorials and searched through 3 pages of google search results (you know I’m desperate once I’ve done that). Please help me!