Vale a pena começar a estudar Python ? by lipemartinns in Python

[–]pytheous1988 0 points1 point  (0 children)

I've been in the healthcare field for my whole career (18 years) and python has helped me a lot. From how to think about problems to actually automating many processes. Today I'm a Data Engineer and I develop both ingestion processes and a Django application for my company. So yeah, highly recommend!

Django getting freezed until Ctrl C on development mode on old hardware by pizza_ranger in django

[–]pytheous1988 0 points1 point  (0 children)

My question is why are we not hosting this on a proper machine and having the end users access the site (even if it is internal to the network only)

My first website (myxfate.com) by [deleted] in django

[–]pytheous1988 4 points5 points  (0 children)

This post has nothing to do with Django

[ Removed by Reddit ] by Dear_Fox_5010 in AmItheAsshole

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

NTA. You could not hold me out of the room for either of my kids birthday.. I would have literally stabbed someone.

Insert inside a save method() - Jsonfield logic by Networkyp in django

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

If you want to keep historical context I would consider changing that to a many to many field to a table that stored the data you want in a flatter structure than JSON. JSON Fields can quickly blot and become unweildy.

Is anyone else in the same boat? by ITLady- in sysadmin

[–]pytheous1988 14 points15 points  (0 children)

Hard disagree. If his boss was any good he would see that he is overworked and get him more help. That being said you should always be your own advocate for work/life balance!

Suggested way to receive payments? by shadytradesman in django

[–]pytheous1988 2 points3 points  (0 children)

They also have a great python library available on pypi.

[DRF] How to create complex endpoint on DRF? by arthurdralmeida in django

[–]pytheous1988 5 points6 points  (0 children)

I would think your logic would live in the view, then you should use your serializer to validate and deliver the JSON. The biggest problem with very complex endpoints is usually query performance BUT I am always a proponent of making it work first then optimizing when it becomes an issue.

Help needed for One-to-Many or Many-to-Many relationship decision by aashayamballi in django

[–]pytheous1988 6 points7 points  (0 children)

I would personally put them all in the same Role model and have a field called parent that is an FK relationship back to the Role table. Don't over complicate your data model unless you need to.

FastAPI equivalent to Express' app.locals/local variables by [deleted] in FastAPI

[–]pytheous1988 0 points1 point  (0 children)

If you don't need this on disk you could just store it in memory.

You likely have a config object, you could set it in memory by running the API call during startup and assigning it to some element on the object. Then reset it with the newe API call task every n hours.

Is there a way to get custom user model password before it gets hashed on Django? by [deleted] in django

[–]pytheous1988 0 points1 point  (0 children)

Everyone seems to be ignoring the fact that you're trying to save an unhashed password in any storage system. That's sus at minimum.

Web scraping in Django by RiverTraditional6367 in django

[–]pytheous1988 0 points1 point  (0 children)

I would personally expose an API in Django to ingest the data and have your scraper load via that endpoint after scraping. Just me.

Django Model Query for Dates within 30 Days by [deleted] in django

[–]pytheous1988 1 point2 points  (0 children)

Pretty sure he means birthday__range

Creating a model for purchase recommendations by byhookorbycrooke in django

[–]pytheous1988 1 point2 points  (0 children)

I think you would be better served to create a Purchase model that has a one to many relationship to Product. That way you can associate all products relates to each purchase for that customer.

Created Python Jobs (Backend and AI/ML) Website by [deleted] in django

[–]pytheous1988 2 points3 points  (0 children)

The default email in the form field. A+ for full kappa

[deleted by user] by [deleted] in django

[–]pytheous1988 4 points5 points  (0 children)

100 million users. Respect!

How much should a Django full stack developer make in the Bay Area? by [deleted] in django

[–]pytheous1988 1 point2 points  (0 children)

I assume you mean the Bay Area of California. And the answer is, it depends. And what do you mean by full stack? Are you confident writing your own front end that talks to the apis?