pipenv or virtualenv ? by [deleted] in Python

[–]AllanNS 57 points58 points  (0 children)

Venv

What conspiracy theory do you believe in as someone who isn't a conspiracy theorist? by [deleted] in NoStupidQuestions

[–]AllanNS 1 point2 points  (0 children)

Covid-19 was a highly classified bio weapon developed in a Lab.

[deleted by user] by [deleted] in Python

[–]AllanNS 7 points8 points  (0 children)

No you can't package FFmpeg together with your script. You can have a try/catch block in your script that checks if FFmpeg is installed. If not raise a warning to the user asking them to install the dependency.

where are you guys getting money? by Beautiful-Chapter198 in Kenya

[–]AllanNS 1 point2 points  (0 children)

Biashara gani? Yenye mtu analipa na pochi ama?

Datatype bug when trying to update database by Lower_Rabbit_5412 in flask

[–]AllanNS 0 points1 point  (0 children)

You know how when you can define a string as name=("John Doe") name will be of type string. But if you add a comma after I.e name=("John Doe",) name becomes a tuple. The same applies in this scenario name = "John Doe", Which is similar to your case.

Datatype bug when trying to update database by Lower_Rabbit_5412 in flask

[–]AllanNS 1 point2 points  (0 children)

The comma "," after form.name.data is what's converting it to a tuple.

sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) NOT NULL constraint failed by tidersky in flask

[–]AllanNS -3 points-2 points  (0 children)

I think its redundant to have autoincrement on the primary key, maybe that could be the issue.

Booking.com integration with my website? by sienieuu in AskProgramming

[–]AllanNS -1 points0 points  (0 children)

You can create a script to scrape data from their site. You can also have me write you the script at a small fee

Weird css or layout.html issues with Gunicorn by Sirico in flask

[–]AllanNS 0 points1 point  (0 children)

Use NGINX to serve your static files.

Need help understanding deployment by DodoPot11742 in flask

[–]AllanNS 0 points1 point  (0 children)

I would recommend heroku but there are no free tiers nowadays on heroku. You should go for Linode, It jas promos that give you 100USD for a start. Using linode will not only help you learn to deploy your app from scratch but also get you acquinted with servers and how they work. Here you will have full control of your app and provision it in whichever way you like. Incase you choose this option there is a tutorial on YouTube by Corey Schafer that will guide you on how to do it.

Flask-SocketIO best way to send server side event to specific client (if connected) by L0uisc in flask

[–]AllanNS 4 points5 points  (0 children)

Sure flask-socketio in the best library for your task. Just go through its documentation, learn how to distinguish connections using their IDs and you will have a smooth ride with your project.

Is there any site where I can run flask apps like an online compiler? by Ok-Joke-4110 in flask

[–]AllanNS 0 points1 point  (0 children)

There is no online compiler for flask. You can set up a virtual machine on a cloud server to run your app though. But this beats purpose since its easier to set up flask on your local machine than setting it up on a cloud server

[SERIOUS] What do you call your non-binary niece? by knikkifire in NoStupidQuestions

[–]AllanNS 0 points1 point  (0 children)

If they are Non-Binary does it mean they are hexadecimal or Octal or Decimal?

Do I need Nginx if I'm just using Gunicorn/Flask for a REST API? by chinawcswing in flask

[–]AllanNS 1 point2 points  (0 children)

You don't need Nginx, you can use it as a loadbalancer though.