Software architecture humblebundle
Which of them you have read and really recommend ? I wonder to buy max plan.
https://www.humblebundle.com/books/software-architecture-2025-oreilly-books
/r/Python
https://redd.it/1musaqj
Which of them you have read and really recommend ? I wonder to buy max plan.
https://www.humblebundle.com/books/software-architecture-2025-oreilly-books
/r/Python
https://redd.it/1musaqj
Humble Bundle
Humble Tech Book Bundle: Software Architecture 2025 by O'Reilly
Pay what you want for the latest Humble Tech Bundle: Software Architecture 2025 and help support Code for America with your purchase!
Need feedback on my resume & project direction (Python/Django/Flask)
/r/django
https://redd.it/1muuqd0
/r/django
https://redd.it/1muuqd0
Vehicle Routing Problem
Hey, guys! Now I am taking part in the hackathon. We must distribute 20 000 orders between 200 couriers. We thought that we can train a neural network, which would looking for different routes, but understood that we wouldn't meet the deadline in 2 weeks.
We want to make a hybrid ml model and algorithm. What algorithm you can suggest? We thought about MILP, but it is greedy algorithm. What other recommendations you can give us?
/r/Python
https://redd.it/1muw4ci
Hey, guys! Now I am taking part in the hackathon. We must distribute 20 000 orders between 200 couriers. We thought that we can train a neural network, which would looking for different routes, but understood that we wouldn't meet the deadline in 2 weeks.
We want to make a hybrid ml model and algorithm. What algorithm you can suggest? We thought about MILP, but it is greedy algorithm. What other recommendations you can give us?
/r/Python
https://redd.it/1muw4ci
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Take Stack Overflow’s Survey on Sub-Communities - Option to be Entered into Raffle as a Thank you!
Hi everyone. I’m Cat, a Product Manager at Stack Overflow working on Community Products. My team is exploring new ways for our community to connect beyond Q&A, specifically through smaller sub-communities. We're interested in hearing from software developers and tech enthusiasts about the value of joining and participating in these groups on Stack. These smaller communities (similar to this Python community) could be formed around shared goals, learning objectives, interests, specific technologies, coding languages, or other technical topics, providing a dedicated space for people to gather and discuss their specific focus.
If you have a few minutes, we’d appreciate you filling out our brief survey. Feel free to share this post with your developer friends who may also be interested in taking our survey.
As a token of our appreciation, you can optionally enter into our raffle to win a US $50 gift card in a random drawing of 10 participants after completing the survey. The survey and raffle will be open from August 19 to September 3. Link to Raffle rules
Thanks again and thank you to the mods for letting me connect with the community here.
/r/Python
https://redd.it/1muwj8j
Hi everyone. I’m Cat, a Product Manager at Stack Overflow working on Community Products. My team is exploring new ways for our community to connect beyond Q&A, specifically through smaller sub-communities. We're interested in hearing from software developers and tech enthusiasts about the value of joining and participating in these groups on Stack. These smaller communities (similar to this Python community) could be formed around shared goals, learning objectives, interests, specific technologies, coding languages, or other technical topics, providing a dedicated space for people to gather and discuss their specific focus.
If you have a few minutes, we’d appreciate you filling out our brief survey. Feel free to share this post with your developer friends who may also be interested in taking our survey.
As a token of our appreciation, you can optionally enter into our raffle to win a US $50 gift card in a random drawing of 10 participants after completing the survey. The survey and raffle will be open from August 19 to September 3. Link to Raffle rules
Thanks again and thank you to the mods for letting me connect with the community here.
/r/Python
https://redd.it/1muwj8j
Ballparkhq
Ballpark – Research Platform
You've been invited to view or participate in some research. Open the link to get started.
Hexora – static analysis tool for malicious Python scripts
Hi Reddit, I'd love to hear your feedback and suggestions about my new tool.
What My Project Does
It's a new tool to detect malicious or harmful code. It can be used to review your project dependencies or just scan any scripts. It will show you potentially harmful code pieces which can be manually reviewed by a developer.
Here is a quick example:
> hexora audit test.py
warningHX2000: Reading from the clipboard can be used to exfiltrate sensitive data.
┌─ resources/test/test.py:3:8
│
1 │ import pyperclip
2 │
3 │ data = pyperclip.paste()
│ ^^^^^^^^^^^^^^^^^ HX2000
│
= Confidence: High
Help: Clipboard access can be used to exfiltrate sensitive data such as passwords and keys.
warningHX3000: Possible execution of unwanted code
┌─ resources/test/test.py:20:1
│
/r/Python
https://redd.it/1muyltn
Hi Reddit, I'd love to hear your feedback and suggestions about my new tool.
What My Project Does
It's a new tool to detect malicious or harmful code. It can be used to review your project dependencies or just scan any scripts. It will show you potentially harmful code pieces which can be manually reviewed by a developer.
Here is a quick example:
> hexora audit test.py
warningHX2000: Reading from the clipboard can be used to exfiltrate sensitive data.
┌─ resources/test/test.py:3:8
│
1 │ import pyperclip
2 │
3 │ data = pyperclip.paste()
│ ^^^^^^^^^^^^^^^^^ HX2000
│
= Confidence: High
Help: Clipboard access can be used to exfiltrate sensitive data such as passwords and keys.
warningHX3000: Possible execution of unwanted code
┌─ resources/test/test.py:20:1
│
/r/Python
https://redd.it/1muyltn
Reddit
From the Python community on Reddit: Hexora – static analysis tool for malicious Python scripts
Explore this post and more from the Python community
AWS vs DigitalOcean
I help lead a small team of 4 eng working on a django app (with postgres & django). We're growing at a slow rate. We've so far deployed it to Heroku, but Heroku is really unreliable. Just in the last two months, there were two major outages.
I need to migrate away, but I'm not sure if we should switch to DigitalOcean or AWS. We really enjoyed Heroku being user-friendly, which is why I am considering DigitalOcean. None of us have any experience with AWS, so it would have to be me learning how to deploy and use AWS. For reliability, we'd be using multi-AZ on AWS or readonly databases on DigitalOcean.
How would you guys think about this? Is DigitalOcean less reliable because there is no notion of an AZ within a region? How much of a UX/DX improvement is DO compared to AWS in 2025?
/r/django
https://redd.it/1mv00o9
I help lead a small team of 4 eng working on a django app (with postgres & django). We're growing at a slow rate. We've so far deployed it to Heroku, but Heroku is really unreliable. Just in the last two months, there were two major outages.
I need to migrate away, but I'm not sure if we should switch to DigitalOcean or AWS. We really enjoyed Heroku being user-friendly, which is why I am considering DigitalOcean. None of us have any experience with AWS, so it would have to be me learning how to deploy and use AWS. For reliability, we'd be using multi-AZ on AWS or readonly databases on DigitalOcean.
How would you guys think about this? Is DigitalOcean less reliable because there is no notion of an AZ within a region? How much of a UX/DX improvement is DO compared to AWS in 2025?
/r/django
https://redd.it/1mv00o9
Reddit
From the django community on Reddit
Explore this post and more from the django community
Customizing your IPython shell in Docker and Docker Compose
Hi everyone,
I avoided customizing IPython at all in Docker Compose environments because I didn't want to impose my preferences and proclivities on my coworkers. But it turns out it's easy to customize without having to do that.
In this post: https://frankwiles.com/posts/customize-ipython-docker/
I walk you through:
* How to use a local profile in Docker Compose
* How to set simple configuration options (vi editing mode)
* Automatically import frequently used libraries
* Load project specific data you need frequently
* How to build powerful custom debugging tools
Hope you find it useful! Welcome any feedback you might have.
/r/Python
https://redd.it/1mv2wut
Hi everyone,
I avoided customizing IPython at all in Docker Compose environments because I didn't want to impose my preferences and proclivities on my coworkers. But it turns out it's easy to customize without having to do that.
In this post: https://frankwiles.com/posts/customize-ipython-docker/
I walk you through:
* How to use a local profile in Docker Compose
* How to set simple configuration options (vi editing mode)
* Automatically import frequently used libraries
* Load project specific data you need frequently
* How to build powerful custom debugging tools
Hope you find it useful! Welcome any feedback you might have.
/r/Python
https://redd.it/1mv2wut
Frankwiles
Customize your IPython shell in Docker
You can heavily customize your IPython shell experience when using it inside Docker or in a Docker Compose project. Without your personal preferences annoying your teammates!
Inspiration Tuesday
Things are a little slow this week, so why don’t we spice things up and talk about what we are all working on! Be it a learning project, a passion project, or something else!
/r/djangolearning
https://redd.it/1muo3ec
Things are a little slow this week, so why don’t we spice things up and talk about what we are all working on! Be it a learning project, a passion project, or something else!
/r/djangolearning
https://redd.it/1muo3ec
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Complete beginner: How to deploy Django app to Windows Server?
Hi everyone!
I built a Django app on my MacBook that works fine locally, but I'm completely new to deployment and need to get it running on a Windows Server in our office.
Current situation:
\- Django app works with `python manage.py runserver` on macOS
\- Need to deploy to Windows Server (not cloud)
\- Zero deployment experience
\- Uses PostgreSQL, static files, and a requirements.txt
What I'm lost on:
\- How to transfer my code to Windows Server?
\- What do I install on the server to run Django?
\- How to make it accessible to others on our network?
\- Do I need IIS or something else?
\- How to handle the database and static files?
/r/django
https://redd.it/1mv5n2e
Hi everyone!
I built a Django app on my MacBook that works fine locally, but I'm completely new to deployment and need to get it running on a Windows Server in our office.
Current situation:
\- Django app works with `python manage.py runserver` on macOS
\- Need to deploy to Windows Server (not cloud)
\- Zero deployment experience
\- Uses PostgreSQL, static files, and a requirements.txt
What I'm lost on:
\- How to transfer my code to Windows Server?
\- What do I install on the server to run Django?
\- How to make it accessible to others on our network?
\- Do I need IIS or something else?
\- How to handle the database and static files?
/r/django
https://redd.it/1mv5n2e
Reddit
From the django community on Reddit
Explore this post and more from the django community
Looking for a Django library to build OAuth Server (in CSR settings)
Do you know a Django library for building OAuth server which supports DRF? django-oauth-toolkit seems only to support Django "forms" for OAuth consent screen. I have a separated frontend (CSR). Authorize endpoint should redirect to frontend instead of rendering a consent screen.
/r/django
https://redd.it/1mvagx9
Do you know a Django library for building OAuth server which supports DRF? django-oauth-toolkit seems only to support Django "forms" for OAuth consent screen. I have a separated frontend (CSR). Authorize endpoint should redirect to frontend instead of rendering a consent screen.
/r/django
https://redd.it/1mvagx9
Reddit
From the django community on Reddit
Explore this post and more from the django community
Wove: Beautiful Python async
Hi all! I've released a new python library that rethinks async coding, making it more concise and easier to read. Check it out and let me know what you think!
[https://github.com/curvedinf/wove/](https://github.com/curvedinf/wove/)
# What My Project Does
Here are the first bits from the github readme:
# Core Concepts
Wove is made from sensical philosophies that make async code feel more Pythonic.
* **Looks Like Normal Python**: You write simple, decorated functions. No manual task objects, no callbacks.
* **Reads Top-to-Bottom**: The code in a `weave` block is declared in a logical order, but `wove` intelligently determines the optimal *execution* order.
* **Automatic Parallelism**: Wove builds a dependency graph from your function signatures and runs independent tasks concurrently.
* **Normal Python Data**: Wove's task data looks like normal Python variables because it is, creating inherent multithreaded data safety in the same way as map-reduce.
* **Minimal Boilerplate**: Get started with just the `async with weave() as w:` context manager and the `@w.do` decorator.
* **Sync & Async Transparency**: Mix `async def` and `def` functions freely. `wove` automatically runs synchronous functions in a background thread pool to avoid blocking the event loop.
* **Zero Dependencies**: Wove is pure Python, using only the standard library and can be integrated into any Python project.
# Installation
Download wove
/r/Python
https://redd.it/1mv4tyb
Hi all! I've released a new python library that rethinks async coding, making it more concise and easier to read. Check it out and let me know what you think!
[https://github.com/curvedinf/wove/](https://github.com/curvedinf/wove/)
# What My Project Does
Here are the first bits from the github readme:
# Core Concepts
Wove is made from sensical philosophies that make async code feel more Pythonic.
* **Looks Like Normal Python**: You write simple, decorated functions. No manual task objects, no callbacks.
* **Reads Top-to-Bottom**: The code in a `weave` block is declared in a logical order, but `wove` intelligently determines the optimal *execution* order.
* **Automatic Parallelism**: Wove builds a dependency graph from your function signatures and runs independent tasks concurrently.
* **Normal Python Data**: Wove's task data looks like normal Python variables because it is, creating inherent multithreaded data safety in the same way as map-reduce.
* **Minimal Boilerplate**: Get started with just the `async with weave() as w:` context manager and the `@w.do` decorator.
* **Sync & Async Transparency**: Mix `async def` and `def` functions freely. `wove` automatically runs synchronous functions in a background thread pool to avoid blocking the event loop.
* **Zero Dependencies**: Wove is pure Python, using only the standard library and can be integrated into any Python project.
# Installation
Download wove
/r/Python
https://redd.it/1mv4tyb
GitHub
GitHub - curvedinf/wove: Beautiful Python async
Beautiful Python async. Contribute to curvedinf/wove development by creating an account on GitHub.
Websockets in django
I want to understand what are websockets and what are they mainly used for ??
for example rest apis fetch data from backend to serve front-end, what a typical use case for web sockets in a simple webapp.
also how to implement them in django. Do they integrate with django models in any sense ??
what components of django interact with them and maybe some small boilerplate code to help me understand what to do with web socket and how would be great and appreciated.
Thanks
/r/django
https://redd.it/1mvby4o
I want to understand what are websockets and what are they mainly used for ??
for example rest apis fetch data from backend to serve front-end, what a typical use case for web sockets in a simple webapp.
also how to implement them in django. Do they integrate with django models in any sense ??
what components of django interact with them and maybe some small boilerplate code to help me understand what to do with web socket and how would be great and appreciated.
Thanks
/r/django
https://redd.it/1mvby4o
Reddit
From the django community on Reddit
Explore this post and more from the django community
[P] My open-source project on building production-level AI agents just hit 10K stars on GitHub
My Agents-Towards-Production GitHub repository just crossed 10,000 stars in only two months!
Here's what's inside:
* 33 detailed tutorials on building the components needed for production-level agents
* Tutorials organized by category
* Clear, high-quality explanations with diagrams and step-by-step code implementations
* New tutorials are added regularly
* I'll keep sharing updates about these tutorials here
A huge thank you to all contributors who made this possible!
[Link to the repo](https://github.com/NirDiamant/agents-towards-production)
/r/MachineLearning
https://redd.it/1mvhpu6
My Agents-Towards-Production GitHub repository just crossed 10,000 stars in only two months!
Here's what's inside:
* 33 detailed tutorials on building the components needed for production-level agents
* Tutorials organized by category
* Clear, high-quality explanations with diagrams and step-by-step code implementations
* New tutorials are added regularly
* I'll keep sharing updates about these tutorials here
A huge thank you to all contributors who made this possible!
[Link to the repo](https://github.com/NirDiamant/agents-towards-production)
/r/MachineLearning
https://redd.it/1mvhpu6
GitHub
GitHub - NirDiamant/agents-towards-production: This repository delivers end-to-end, code-first tutorials covering every layer of…
This repository delivers end-to-end, code-first tutorials covering every layer of production-grade GenAI agents, guiding you from spark to scale with proven patterns and reusable blueprints for re...
Django needs this
https://x.com/josevalim/status/1957809643637391366?s=46&t=aa8Y4rUby5TeKkhwAg5LdQ
Instead of debug toolbar a coding assistant directly in Django
/r/django
https://redd.it/1mvbj2a
https://x.com/josevalim/status/1957809643637391366?s=46&t=aa8Y4rUby5TeKkhwAg5LdQ
Instead of debug toolbar a coding assistant directly in Django
/r/django
https://redd.it/1mvbj2a
X (formerly Twitter)
José Valim (@josevalim) on X
Introducing Tidewave Web for Rails and Phoenix: a coding agent that runs in the browser alongside your web application, with full page and code context.
Tidewave deeply integrates with your stack, from the database to the UI, making AI development more seamless…
Tidewave deeply integrates with your stack, from the database to the UI, making AI development more seamless…
How to Logout Everywhere (Clear All Sessions)?
Hi,
What’s the best way to add a button that lets a user log out of their account everywhere (basically clear all their active sessions)?
Looping through every session like this is terrible for performance:
for s in Session.objects.all():
if s.getdecoded().get("authuserid") == str(user.id):
s.delete()
I also found this package, but it looks unmaintained and possibly insecure:
https://github.com/jazzband/django-user-sessions
How should I implement this properly?
Thanks!
/r/django
https://redd.it/1muw5hy
Hi,
What’s the best way to add a button that lets a user log out of their account everywhere (basically clear all their active sessions)?
Looping through every session like this is terrible for performance:
for s in Session.objects.all():
if s.getdecoded().get("authuserid") == str(user.id):
s.delete()
I also found this package, but it looks unmaintained and possibly insecure:
https://github.com/jazzband/django-user-sessions
How should I implement this properly?
Thanks!
/r/django
https://redd.it/1muw5hy
GitHub
GitHub - jazzband/django-user-sessions: Extend Django sessions with a foreign key back to the user, allowing enumerating all user's…
Extend Django sessions with a foreign key back to the user, allowing enumerating all user's sessions. - jazzband/django-user-sessions
R What do people expect from AI in the next decade across various domains? Survey with N=1100 people from Germay::We found high likelihood, higher perceived risks, yet limited benefits low perceived value. Yet, benefits outweight risks in forming value judgments. Visual result illustrations :)
Hi everyone, we recently published a peer-reviewed article exploring how people perceive artificial intelligence (AI) across different domains (e.g., autonomous driving, healthcare, politics, art, warfare). The study used a nationally representative sample in Germany (N=1100) and asked participants to evaluate 71 AI-related scenarios in terms of expected likelihood, risks, benefits, and overall value.
If you like AI or studying the public perception of AI, please also give us an upvote here: https://www.reddit.com/r/science/comments/1mvd1q0/public\_perception\_of\_artificial\_intelligence/ 🙈
Main takeaway: People often see AI scenarios as likely, but this doesn’t mean they view them as beneficial. In fact, most scenarios were judged to have high risks, limited benefits, and low overall value. Interestingly, we found that people’s value judgments were almost entirely explained by risk-benefit tradeoffs (96.5% variance explained, with benefits being more important for forming value judgements than risks), while expectations of likelihood didn’t matter much.
Why this matters? These results highlight how important it is to communicate concrete benefits while addressing public concerns. Something relevant for policymakers, developers, and anyone working on AI ethics and governance.
If you’re interested, here’s the full article:
Mapping Public Perception of Artificial Intelligence: Expectations, Risk-Benefit Tradeoffs, and Value As Determinants for Societal
/r/MachineLearning
https://redd.it/1mvmlbw
Hi everyone, we recently published a peer-reviewed article exploring how people perceive artificial intelligence (AI) across different domains (e.g., autonomous driving, healthcare, politics, art, warfare). The study used a nationally representative sample in Germany (N=1100) and asked participants to evaluate 71 AI-related scenarios in terms of expected likelihood, risks, benefits, and overall value.
If you like AI or studying the public perception of AI, please also give us an upvote here: https://www.reddit.com/r/science/comments/1mvd1q0/public\_perception\_of\_artificial\_intelligence/ 🙈
Main takeaway: People often see AI scenarios as likely, but this doesn’t mean they view them as beneficial. In fact, most scenarios were judged to have high risks, limited benefits, and low overall value. Interestingly, we found that people’s value judgments were almost entirely explained by risk-benefit tradeoffs (96.5% variance explained, with benefits being more important for forming value judgements than risks), while expectations of likelihood didn’t matter much.
Why this matters? These results highlight how important it is to communicate concrete benefits while addressing public concerns. Something relevant for policymakers, developers, and anyone working on AI ethics and governance.
If you’re interested, here’s the full article:
Mapping Public Perception of Artificial Intelligence: Expectations, Risk-Benefit Tradeoffs, and Value As Determinants for Societal
/r/MachineLearning
https://redd.it/1mvmlbw
Reddit
From the science community on Reddit: Public Perception of Artificial Intelligence: Expectation, Risk-Benefit Tradeoffs and Value:…
Posted by lipflip - 29 votes and 6 comments
Zypher: A Modern GUI for yt-dlp Built with Python and CustomTkinter
Hi everyone!
I'm sharing my project Zypher, a desktop GUI wrapper for yt-dlp built with Python and CustomTkinter.
# What My Project Does
Zypher simplifies downloading video and audio content from hundreds of websites. It provides a clean, modern interface that leverages the power of the yt-dlp command line tool without requiring users to touch a terminal. You just paste a URL, click a button, and your download starts. The current stable version (Zypher Lite) focuses on speed and reliability by downloading in native formats without external dependencies like FFmpeg.
# Target Audience
This is a tool for end-users who want a simple, GUI-driven alternative to command-line tools like yt-dlp or youtube-dl. It's also relevant for Python developers interested in seeing practical applications of GUI development with CustomTkinter, packaging, and integrating powerful libraries into a user-friendly product. The Lite version is production ready for basic use, while the full version is a work in progress project.
# Comparison
Unlike the official yt-dlp which is command-line only, Zypher provides a full graphical interface. It differs from many web-based downloaders by being a local, private Windows application with no ads, no trackers, and no upload limits. Compared to other GUI wrappers, its focus is on a modern, clean UI
/r/Python
https://redd.it/1mvpqx0
Hi everyone!
I'm sharing my project Zypher, a desktop GUI wrapper for yt-dlp built with Python and CustomTkinter.
# What My Project Does
Zypher simplifies downloading video and audio content from hundreds of websites. It provides a clean, modern interface that leverages the power of the yt-dlp command line tool without requiring users to touch a terminal. You just paste a URL, click a button, and your download starts. The current stable version (Zypher Lite) focuses on speed and reliability by downloading in native formats without external dependencies like FFmpeg.
# Target Audience
This is a tool for end-users who want a simple, GUI-driven alternative to command-line tools like yt-dlp or youtube-dl. It's also relevant for Python developers interested in seeing practical applications of GUI development with CustomTkinter, packaging, and integrating powerful libraries into a user-friendly product. The Lite version is production ready for basic use, while the full version is a work in progress project.
# Comparison
Unlike the official yt-dlp which is command-line only, Zypher provides a full graphical interface. It differs from many web-based downloaders by being a local, private Windows application with no ads, no trackers, and no upload limits. Compared to other GUI wrappers, its focus is on a modern, clean UI
/r/Python
https://redd.it/1mvpqx0
Reddit
From the Python community on Reddit: Zypher: A Modern GUI for yt-dlp Built with Python and CustomTkinter
Explore this post and more from the Python community
Python workflows for efficient text data labeling in NLP projects?
For those working with NLP in Python, what’s your go-to way of handling large-scale text labeling efficiently?
Do you rely on:
* Pure manual labeling with Python-based tools (e.g., Label Studio, Prodigy),
* Active Learning frameworks (modAL, small-text, etc.),
* Or custom batching/heuristics you’ve built yourself?
Curious what Python-based approaches people actually find practical in real projects, especially where accuracy vs labeling cost becomes a trade-off.
/r/Python
https://redd.it/1mvhq51
For those working with NLP in Python, what’s your go-to way of handling large-scale text labeling efficiently?
Do you rely on:
* Pure manual labeling with Python-based tools (e.g., Label Studio, Prodigy),
* Active Learning frameworks (modAL, small-text, etc.),
* Or custom batching/heuristics you’ve built yourself?
Curious what Python-based approaches people actually find practical in real projects, especially where accuracy vs labeling cost becomes a trade-off.
/r/Python
https://redd.it/1mvhq51
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Implemented a Production-Ready Soft Delete System Using Django Custom User Model – Feedback Welcome
Hey everyone,
I recently built a **soft delete system for users** in a Django-based financial application and thought I’d share the details in case it helps others.
In production systems—especially in finance or regulated sectors—you often can’t just delete a user from the database. Audit trails, transaction records, and compliance needs make this much trickier. We needed something that was:
* Reversible
* Audit-friendly
* Easy to work with in admin
* Compatible with Django's auth and related models
🔧 **Key Design Choices:**
* Custom `User` model from day one (don’t wait until later!)
* Soft delete via `is_deleted`, `deleted_at`, `deleted_by`
* `on_delete=models.PROTECT` to keep transaction history safe
* Admin actions for soft deleting and restoring users
* Proper indexing for `is_deleted` to avoid query slowdowns
🔎 Here's the full write-up (with code and reasoning):
👉 [https://open.substack.com/pub/techsavvyinvestor/p/how-we-built-a-soft-delete-system?r=3ng1a9&utm\_campaign=post&utm\_medium=web&showWelcomeOnShare=true](https://open.substack.com/pub/techsavvyinvestor/p/how-we-built-a-soft-delete-system?r=3ng1a9&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true)
Would love feedback, especially from folks who’ve implemented this at scale or found better patterns. Always open to improvements.
Thanks to the Django docs and `safedelete` for inspiration.
Cheers!
/r/django
https://redd.it/1mvp8pm
Hey everyone,
I recently built a **soft delete system for users** in a Django-based financial application and thought I’d share the details in case it helps others.
In production systems—especially in finance or regulated sectors—you often can’t just delete a user from the database. Audit trails, transaction records, and compliance needs make this much trickier. We needed something that was:
* Reversible
* Audit-friendly
* Easy to work with in admin
* Compatible with Django's auth and related models
🔧 **Key Design Choices:**
* Custom `User` model from day one (don’t wait until later!)
* Soft delete via `is_deleted`, `deleted_at`, `deleted_by`
* `on_delete=models.PROTECT` to keep transaction history safe
* Admin actions for soft deleting and restoring users
* Proper indexing for `is_deleted` to avoid query slowdowns
🔎 Here's the full write-up (with code and reasoning):
👉 [https://open.substack.com/pub/techsavvyinvestor/p/how-we-built-a-soft-delete-system?r=3ng1a9&utm\_campaign=post&utm\_medium=web&showWelcomeOnShare=true](https://open.substack.com/pub/techsavvyinvestor/p/how-we-built-a-soft-delete-system?r=3ng1a9&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true)
Would love feedback, especially from folks who’ve implemented this at scale or found better patterns. Always open to improvements.
Thanks to the Django docs and `safedelete` for inspiration.
Cheers!
/r/django
https://redd.it/1mvp8pm
Substack
How We Built a Soft Delete System for Django Without Losing Our Sanity
Behind the Bots #01 — Real-world Django fixes from the AlgoInvesting.ai codebase
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/1mvvn3p
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/1mvvn3p
Reddit
From the Python community on Reddit
Explore this post and more from the Python community