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
I made "Wove: Beautiful Python async" to help easily make async API and QuerySet calls in views
Hi r/Django, I've released a new library I made for improving the usability of asyncio. I'm a Django developer first, so I designed it with Django views specifically in mind. Check it out and tell me what you think!
[https://github.com/curvedinf/wove/](https://github.com/curvedinf/wove/)
Here is the beginning of the readme to save you a click:
# Wove
Beautiful Python async.
# What is Wove For?
Wove is for running high latency async tasks like web requests and database queries concurrently in the same way as asyncio, but with a drastically improved user experience. Improvements compared to asyncio include:
* Looks Like Normal Python: Parallelism and execution order are implicit. You write simple, decorated functions. No manual task objects, no callbacks.
* Reads Top-to-Bottom: The code in a weave block is declared in the order it is executed inline in your code instead of in disjointed functions.
* Automatic Parallelism: Wove builds a dependency graph from your function signatures and runs independent tasks concurrently as soon as possible.
* High Visibility: Wove includes debugging tools that allow you to identify where exceptions and deadlocks occur across parallel tasks, and inspect inputs and outputs at each stage of execution.
* Normal Python Data: Wove's task data looks like normal Python variables because it is. This is
/r/django
https://redd.it/1mvo3h4
Hi r/Django, I've released a new library I made for improving the usability of asyncio. I'm a Django developer first, so I designed it with Django views specifically in mind. Check it out and tell me what you think!
[https://github.com/curvedinf/wove/](https://github.com/curvedinf/wove/)
Here is the beginning of the readme to save you a click:
# Wove
Beautiful Python async.
# What is Wove For?
Wove is for running high latency async tasks like web requests and database queries concurrently in the same way as asyncio, but with a drastically improved user experience. Improvements compared to asyncio include:
* Looks Like Normal Python: Parallelism and execution order are implicit. You write simple, decorated functions. No manual task objects, no callbacks.
* Reads Top-to-Bottom: The code in a weave block is declared in the order it is executed inline in your code instead of in disjointed functions.
* Automatic Parallelism: Wove builds a dependency graph from your function signatures and runs independent tasks concurrently as soon as possible.
* High Visibility: Wove includes debugging tools that allow you to identify where exceptions and deadlocks occur across parallel tasks, and inspect inputs and outputs at each stage of execution.
* Normal Python Data: Wove's task data looks like normal Python variables because it is. This is
/r/django
https://redd.it/1mvo3h4
GitHub
GitHub - curvedinf/wove: Beautiful Python async
Beautiful Python async. Contribute to curvedinf/wove development by creating an account on GitHub.
The last supported Python version for Pytype will be 3.12
An update on pytype
“TL;DR: The last supported Python version for Pytype will be 3.12. We are still very actively interested in the space of Python type checking, but shifting our investments towards new ideas and different frameworks.”
/r/Python
https://redd.it/1mvxmi5
An update on pytype
“TL;DR: The last supported Python version for Pytype will be 3.12. We are still very actively interested in the space of Python type checking, but shifting our investments towards new ideas and different frameworks.”
/r/Python
https://redd.it/1mvxmi5
GitHub
GitHub - google/pytype: A static type analyzer for Python code
A static type analyzer for Python code. Contribute to google/pytype development by creating an account on GitHub.
Vibe Coding Experiment Failures (with Python code)
A set of apps that ChatGPT 5, Gemini 2.5 Pro, and Claude Sonnet 4 were asked to write Python code for, and how they fail.
While LLMs can create common programs like stopwatch apps, Tetris, or to-do lists, they fail at slightly unusual apps even if they are also small in scope. The app failures included:
African Countries Geography Quiz
Pinball Game
Circular Maze Generator
Interactive Chinese Abacus
Combination Lock Simulator
Family Tree Diagram Editor
Lava Lamp Simulator
Snow Globe Simulator
Screenshots and source code are listed in the blog post:
https://inventwithpython.com/blog/vibe-coding-failures.html
I'm open to hearing about other failures people have had, or if anyone is able to create working versions of the apps I listed.
/r/Python
https://redd.it/1mvmiia
A set of apps that ChatGPT 5, Gemini 2.5 Pro, and Claude Sonnet 4 were asked to write Python code for, and how they fail.
While LLMs can create common programs like stopwatch apps, Tetris, or to-do lists, they fail at slightly unusual apps even if they are also small in scope. The app failures included:
African Countries Geography Quiz
Pinball Game
Circular Maze Generator
Interactive Chinese Abacus
Combination Lock Simulator
Family Tree Diagram Editor
Lava Lamp Simulator
Snow Globe Simulator
Screenshots and source code are listed in the blog post:
https://inventwithpython.com/blog/vibe-coding-failures.html
I'm open to hearing about other failures people have had, or if anyone is able to create working versions of the apps I listed.
/r/Python
https://redd.it/1mvmiia
Inventwithpython
Vibe Coding Experiment Failures - Invent with Python
Python freelancing For College
I’m not sure where to put this so I’m guessing the career advice channel. I am currently in pursuit of my bachelors in software engineering with 2 years of Java and Python programming experience. I’m looking for real world experience through freelancing and having a hard time finding clients and winning jobs on upwork,‘I’m not sure if I’m unable to market myself or hat, so I’m looking for advice on how to progress. Please feel free to to @ me or DM me.
/r/Python
https://redd.it/1mw65r2
I’m not sure where to put this so I’m guessing the career advice channel. I am currently in pursuit of my bachelors in software engineering with 2 years of Java and Python programming experience. I’m looking for real world experience through freelancing and having a hard time finding clients and winning jobs on upwork,‘I’m not sure if I’m unable to market myself or hat, so I’m looking for advice on how to progress. Please feel free to to @ me or DM me.
/r/Python
https://redd.it/1mw65r2
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
DSA IN PYTHON OR NOT??
SO I just started doing python 1.5 months ago and now I have good conceptual understanding of python in the sense that i feel a little bit confidence in writing the codes. Everyone around me is saying to start with DSA at this point but there is no online course(free and not paid) for DSA in python and every resource in DSA is either in C++ or java. What should I now. Can anyone pls guide me how I should proceed further from this point
/r/Python
https://redd.it/1mw7vux
SO I just started doing python 1.5 months ago and now I have good conceptual understanding of python in the sense that i feel a little bit confidence in writing the codes. Everyone around me is saying to start with DSA at this point but there is no online course(free and not paid) for DSA in python and every resource in DSA is either in C++ or java. What should I now. Can anyone pls guide me how I should proceed further from this point
/r/Python
https://redd.it/1mw7vux
Reddit
From the Python community on Reddit: [ Removed by moderator ]
Posted by Greedy-Repair-7208 - 0 votes and 8 comments
Monkesearch: open source, offline natural language query for local files, with temporal awareness
Today I am very excited to release a very bare bones and working prototype for this!
https://github.com/monkesearch/monkeSearch
I'd love to get reviews and suggestions for this, and I've used macOS's inbuilt spotlight indexing for the query. There are a lot of modifications and feature additions to be done now but I want you guys to try it out locally. Current file search is only limited to a few file types because I am associating the macOS specific uniform type identifiers with file types, and that has been done manually just for the prototype right now. Also this is just the prototype / proof of concept and we need more refinement!
What My Project Does:
You can search for your local files using natural english language.
No data leaves your pc and it is aimed at being able to run on potato pcs. And I'm currently aiming at a smaller and smarter model (Gemma 3 270M finetune) to increase the accuracy of the tool (even though it's pretty accurate right away with base Qwen3)
Target Audience:
Whoever wants an easy way to search for file fastly and use natural language/ semantics, this can be the best and most secure tool you can run locally.
/r/Python
https://redd.it/1mw776v
Today I am very excited to release a very bare bones and working prototype for this!
https://github.com/monkesearch/monkeSearch
I'd love to get reviews and suggestions for this, and I've used macOS's inbuilt spotlight indexing for the query. There are a lot of modifications and feature additions to be done now but I want you guys to try it out locally. Current file search is only limited to a few file types because I am associating the macOS specific uniform type identifiers with file types, and that has been done manually just for the prototype right now. Also this is just the prototype / proof of concept and we need more refinement!
What My Project Does:
You can search for your local files using natural english language.
No data leaves your pc and it is aimed at being able to run on potato pcs. And I'm currently aiming at a smaller and smarter model (Gemma 3 270M finetune) to increase the accuracy of the tool (even though it's pretty accurate right away with base Qwen3)
Target Audience:
Whoever wants an easy way to search for file fastly and use natural language/ semantics, this can be the best and most secure tool you can run locally.
/r/Python
https://redd.it/1mw776v
GitHub
GitHub - monkesearch/monkeSearch: fully local, temporally aware natural language file search on your pc! even without a GPU. find…
fully local, temporally aware natural language file search on your pc! even without a GPU. find relevant files using natural language in less than 1 second. - monkesearch/monkeSearch
simple-html 3.0.0 - improved ergonomics and 2x speedup
## What My Project Does
Renders HTML in pure Python (no templates)
## Target Audience
Production
## Comparison
There are similar template-less renderers like dominate, fast-html, PyHTML, htmy. In comparison to those simple-html tends to be:
- more concise
- faster — it's even faster than Jinja (AFAICT it’s currently the fastest library for rendering HTML in Python)
- more fully-typed
## Changes
- About 2x faster (thanks largely to mypyc compilation)
- An attributes dictionary is now optional for tags, reducing clutter.
from simplehtml import h1
h1("hello") # before: h1({}, "hello")
- `int`s, `float`s, and `Decimal` are now accepted as leaf nodes, so you can do
from simplehtml import p
p(123) # before: p(str(123))
## Try it out
Copy the following code to example.py:
from flask import Flask
from simplehtml import render, h1
app = Flask(name)
@app.route("/")
def helloworld():
return render(h1("Hello
/r/Python
https://redd.it/1mwc0to
## What My Project Does
Renders HTML in pure Python (no templates)
## Target Audience
Production
## Comparison
There are similar template-less renderers like dominate, fast-html, PyHTML, htmy. In comparison to those simple-html tends to be:
- more concise
- faster — it's even faster than Jinja (AFAICT it’s currently the fastest library for rendering HTML in Python)
- more fully-typed
## Changes
- About 2x faster (thanks largely to mypyc compilation)
- An attributes dictionary is now optional for tags, reducing clutter.
from simplehtml import h1
h1("hello") # before: h1({}, "hello")
- `int`s, `float`s, and `Decimal` are now accepted as leaf nodes, so you can do
from simplehtml import p
p(123) # before: p(str(123))
## Try it out
Copy the following code to example.py:
from flask import Flask
from simplehtml import render, h1
app = Flask(name)
@app.route("/")
def helloworld():
return render(h1("Hello
/r/Python
https://redd.it/1mwc0to
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
End-user data uploads: separate staging model or staging indicator in a single model?
Wondering what everyone thinks about this: I need a staging area for the data users want to upload. I'm thinking to use a staging model that replicates the prod schema (plus it would have one extra column, the key to identify the owner of staging records). In this case, I'll need to execute SQL to move records from staging to production when ready.
Alternative option is to avoid adding additional model and instead adding a staging indicator column in the single model. But then I worry about indexing and performance.
Thoughts?
/r/django
https://redd.it/1mwdwmp
Wondering what everyone thinks about this: I need a staging area for the data users want to upload. I'm thinking to use a staging model that replicates the prod schema (plus it would have one extra column, the key to identify the owner of staging records). In this case, I'll need to execute SQL to move records from staging to production when ready.
Alternative option is to avoid adding additional model and instead adding a staging indicator column in the single model. But then I worry about indexing and performance.
Thoughts?
/r/django
https://redd.it/1mwdwmp
Reddit
End-user data uploads: separate staging model or staging indicator in a single model? : r/django
153K subscribers in the django community. News and links for the Django community.
Vercel + Railway vs DigitalOcean Droplet for Small E-commerce - Low Maintenance & Cheap?
I’m setting up a small e-commerce site (~20 products) with:
Two Next.js apps (main site + admin panel)
Django backend
Postgres database
Media files (images)
The client doesn’t want a maintenance package, so I’m looking for a solution that is:
- Cheap
- Minimal or zero manual maintenance
- Reliable for low traffic
- Supports persistent storage for images and possibly background tasks (Celery)
I’m debating between:
1. Vercel (Next.js frontends) + Railway (Django + Postgres + volumes)
2. Single DigitalOcean droplet hosting everything
Questions:
Which setup is more “deploy-and-forget” friendly for a small e-commerce site?
Are there hidden maintenance or cost issues I should be aware of?
Anyone running a similar stack - what would you recommend for cheap, low-maintenance hosting?
Thanks in advance!
/r/django
https://redd.it/1mw991o
I’m setting up a small e-commerce site (~20 products) with:
Two Next.js apps (main site + admin panel)
Django backend
Postgres database
Media files (images)
The client doesn’t want a maintenance package, so I’m looking for a solution that is:
- Cheap
- Minimal or zero manual maintenance
- Reliable for low traffic
- Supports persistent storage for images and possibly background tasks (Celery)
I’m debating between:
1. Vercel (Next.js frontends) + Railway (Django + Postgres + volumes)
2. Single DigitalOcean droplet hosting everything
Questions:
Which setup is more “deploy-and-forget” friendly for a small e-commerce site?
Are there hidden maintenance or cost issues I should be aware of?
Anyone running a similar stack - what would you recommend for cheap, low-maintenance hosting?
Thanks in advance!
/r/django
https://redd.it/1mw991o
Reddit
From the django community on Reddit
Explore this post and more from the django community
PrimaryKeyRelatedField - N+1
Someone help, Please
How Can i avoid n+1 in PrimaryKeyRelatedField? Anytime I add student it creates separate query with WHERE clause. Example:
SELECT "content_studentprofile"."id",
"content_studentprofile"."uuid",
"content_studentprofile"."created_at",
"content_studentprofile"."updated_at",
"content_studentprofile"."user_id",
"content_studentprofile"."name"
FROM "content_studentprofile"
WHERE "content_studentprofile"."id" = 11
LIMIT 21
Was not really able to find answer, approach on such cases, So i would be very grateful if someone can help.
/r/django
https://redd.it/1mw4lj2
Someone help, Please
How Can i avoid n+1 in PrimaryKeyRelatedField? Anytime I add student it creates separate query with WHERE clause. Example:
SELECT "content_studentprofile"."id",
"content_studentprofile"."uuid",
"content_studentprofile"."created_at",
"content_studentprofile"."updated_at",
"content_studentprofile"."user_id",
"content_studentprofile"."name"
FROM "content_studentprofile"
WHERE "content_studentprofile"."id" = 11
LIMIT 21
Was not really able to find answer, approach on such cases, So i would be very grateful if someone can help.
/r/django
https://redd.it/1mw4lj2
Reddit
From the django community on Reddit
Explore this post and more from the django community
I built an AI Agent to Auto-Apply Django Jobs
I got tired of the tedious and repetitive job application process.
So I built an AI agent that does the soul-crushing part for me (and you).
---
An end-to-end job-hunting pipeline:
- **Web scraper (70k+ company sites):** Fresh roles, straight from the source.
- **ML matcher (CV → roles):** ranks openings by *fit with your real experience/skills, not keyword bingo.
- **Application agent:** opens a real browser, finds the application page, detects the form, classifies fields (name, email, work history, portfolio, questions…), and fills everything using your CV. Then submits. Repeat.
---
It’s 100% free: [**laboro.co**](https://laboro.co/?utm_source=reddit&utm_medium=organic&utm_contents=87)
/r/django
https://redd.it/1mwpfla
I got tired of the tedious and repetitive job application process.
So I built an AI agent that does the soul-crushing part for me (and you).
---
An end-to-end job-hunting pipeline:
- **Web scraper (70k+ company sites):** Fresh roles, straight from the source.
- **ML matcher (CV → roles):** ranks openings by *fit with your real experience/skills, not keyword bingo.
- **Application agent:** opens a real browser, finds the application page, detects the form, classifies fields (name, email, work history, portfolio, questions…), and fills everything using your CV. Then submits. Repeat.
---
It’s 100% free: [**laboro.co**](https://laboro.co/?utm_source=reddit&utm_medium=organic&utm_contents=87)
/r/django
https://redd.it/1mwpfla
LABORO | Automate Your Job Applications with AI
LABORO helps you streamline job applications and interview prep with AI.
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1mwrf8z
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1mwrf8z
Redditinc
Reddit Rules
Reddit Rules - Reddit