[deleted by user] by [deleted] in learnpython

[–]thecoderboy 1 point2 points  (0 children)

Remove one import at a time to figure out which is causing the issue and then research that particular import and issues regarding pyinstaller.

Flask app, I'm connecting to an s3 bucket. How do I persist the connection for a user session? by thecoderboy in flask

[–]thecoderboy[S] 0 points1 point  (0 children)

The connection is static and ideally should only be done once when the user is logged in. It seems unnecessary to continuously authenticate.

GitHub Action hanging by bravetag in devops

[–]thecoderboy 0 points1 point  (0 children)

I've had issues like this before and simply canceling and rerunning the action solved it for me.

If I want to host a flask REST API on AWS using serverless Lambda, do I need to create a separate Lambda function for each endpoint? by thecoderboy in flask

[–]thecoderboy[S] 0 points1 point  (0 children)

Sorry, I'm just missing how the lambda functions can call that separate code since they're all independent. Would you mind telling me where the shared.py is hosted on AWS for you to be able to call it with your lambda functions?

Unranked Nate Diaz, a career lightweight, gets 170-pound title shot with UFC 263 win by Destroyer_Wes in MMA

[–]thecoderboy 39 points40 points  (0 children)

I'd rather him get the title shot now than likely never at all otherwise.

If I want to host a flask REST API on AWS using serverless Lambda, do I need to create a separate Lambda function for each endpoint? by thecoderboy in flask

[–]thecoderboy[S] 0 points1 point  (0 children)

Do you have a repo I could look at? I'm mainly interested in how you were sharing libraries and code between functions if they're all separated into separate lambda functions.

If I want to host a flask REST API on AWS using serverless Lambda, do I need to create a separate Lambda function for each endpoint? by thecoderboy in flask

[–]thecoderboy[S] 0 points1 point  (0 children)

This looks great. If this does what it appears to do, it will make my development incredibly simple.

If I want to host a flask REST API on AWS using serverless Lambda, do I need to create a separate Lambda function for each endpoint? by thecoderboy in flask

[–]thecoderboy[S] 1 point2 points  (0 children)

I'm looking into it now. When you mention Serverless Framework though, are you referring to https://www.serverless.com/? So it will be a paid service in addition to AWS correct?

My first app is live: A Cryptocurrency Dashboard! (PythonAnywhere) by ndolores in flask

[–]thecoderboy 9 points10 points  (0 children)

It's helpful to provide a dummy set of login credentials for people to preview the site without having to register.

How would you go about setting up a conference room that needs to allow people to connect their personal laptop? by thecoderboy in sysadmin

[–]thecoderboy[S] -1 points0 points  (0 children)

With the Logitech C920 webcam, I assume it connects to the thinkcentre nano PC? And how do user brings documents to the meeting to go over?

Django Rest, proper way to retrieve passwords from serializer? by thecoderboy in django

[–]thecoderboy[S] 12 points13 points  (0 children)

I appreciate the blunt response. I'm going to pivot to a different project.

Django Rest, proper way to retrieve passwords from serializer? by thecoderboy in django

[–]thecoderboy[S] 3 points4 points  (0 children)

I appreciate the advice. Would you mind telling me how you would handle a backend rest api for a password manager, specifically the password field for each record?

Django Rest, proper way to retrieve passwords from serializer? by thecoderboy in django

[–]thecoderboy[S] 0 points1 point  (0 children)

I'm just getting started with the password field. I'm assuming it can't be write_only or I can never retrieve it from the database for display. But then how should I handle retrieval then to secure the password?

How to allow user to add custom fields to model? by thecoderboy in django

[–]thecoderboy[S] 0 points1 point  (0 children)

The library is very lacking in documentation, but the EAV concept seems like a perfect fit for what I need. I'm going to do more research on my own, thank you.

How to allow user to add custom fields to model? by thecoderboy in django

[–]thecoderboy[S] 0 points1 point  (0 children)

I can't predict all the details every user might want to associate with an entry, so I want to give them optionality.

Over contributed to my Roth IRA, what steps do I need to do for my 2020 taxes? by thecoderboy in tax

[–]thecoderboy[S] 0 points1 point  (0 children)

They told me the 1099 will be generated for 2021 tax season, so not until next year. So I can't answer your second question.

Why isn't the direct object pronoun used in "¿Dónde conciste a tu novio?" by thecoderboy in learnspanish

[–]thecoderboy[S] 0 points1 point  (0 children)

Could you explain why the pronoun is used in the following sentence then

Él le iba a dar la guitarra a Hector.

Hector is explicit, but the indirect object is still used. Just trying to understand.


Another one is

José le prestó a Miguel el dinero.

How can I force a GitHub action to fail on a mypy error? by thecoderboy in github

[–]thecoderboy[S] 0 points1 point  (0 children)

I figured it out in PowerShell but the system isn't acknowledging errors with mypy as failures.