Stuck with AJAX reloading entire page...
I'm building a webapp for music streaming. Here's my base.html:
<!DOCTYPE html>
{% load static %}
<html lang="sv">
<head>
<meta charset="UTF-8">
<title>{% block title %}Stream{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
background-color: white;
margin: 0;
padding-top: 56px;
padding-bottom: 100px;
</style>
</head>
<body>
<!-- Navbar -->
<nav id="site-navbar"
/r/djangolearning
https://redd.it/1kxoyfo
I'm building a webapp for music streaming. Here's my base.html:
<!DOCTYPE html>
{% load static %}
<html lang="sv">
<head>
<meta charset="UTF-8">
<title>{% block title %}Stream{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
background-color: white;
margin: 0;
padding-top: 56px;
padding-bottom: 100px;
</style>
</head>
<body>
<!-- Navbar -->
<nav id="site-navbar"
/r/djangolearning
https://redd.it/1kxoyfo
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
How local variables work in Python bytecode
Hi! I posted several months back after wrestling with local versus global identifiers in the Python interpreter I'm building from scratch.
I wanted to share another post that goes deeper into local variables: how the bytecode compiler tracks local identifiers, how these map to slots on the execution stack, and how the runtime VM doesn't even need to know the actual variable names.
If you're interested in how this works under the hood, I hope you find this one helpful: https://fromscratchcode.com/blog/how-local-variables-work-in-python-bytecode/
Please let me know if you have any questions or suggestions!
/r/Python
https://redd.it/1l1ilq0
Hi! I posted several months back after wrestling with local versus global identifiers in the Python interpreter I'm building from scratch.
I wanted to share another post that goes deeper into local variables: how the bytecode compiler tracks local identifiers, how these map to slots on the execution stack, and how the runtime VM doesn't even need to know the actual variable names.
If you're interested in how this works under the hood, I hope you find this one helpful: https://fromscratchcode.com/blog/how-local-variables-work-in-python-bytecode/
Please let me know if you have any questions or suggestions!
/r/Python
https://redd.it/1l1ilq0
Fromscratchcode
How local variables work in Python bytecode
Software mentorship for the quietly subversive.
Introducing MEINE 🌒: A TUI-Based File Manager & Command Console Built with Python
> Hey everyone,
>
> I’m excited to share MEINE — a personal project where I experimented with asynchronous programming, modular design, and terminal UIs. MEINE is a feature-rich file manager and command console that leverages regex-based command parsing to perform tasks like deleting, copying, moving, and renaming files, all within a dynamic TUI. Here are some highlights:
>
> - Regex-Based Commands: Easily interact with files using intuitive command syntaxes.
> - Reactive TUI Directory Navigator: Enjoy a modern terminal experience with both keyboard and mouse support.
> - Live Command Console: See file system operations and system state changes in real time.
> - Asynchronous and Modular Architecture: Built with
> - Customizable Theming and Configurations: Use CSS themes and JSON-based settings for a personalized workflow.
> - Plugin-Ready Design: Extend the project with your own functionalities without modifying the core.
>
> I built MEINE because I wanted to explore new paradigms in terminal application design while keeping the user experience engaging. I’d love to hear your thoughts—any feedback, suggestions, or ideas for improvements are greatly appreciated!
>
> Check out the repository and don't forget to star the
/r/Python
https://redd.it/1l18f3h
> Hey everyone,
>
> I’m excited to share MEINE — a personal project where I experimented with asynchronous programming, modular design, and terminal UIs. MEINE is a feature-rich file manager and command console that leverages regex-based command parsing to perform tasks like deleting, copying, moving, and renaming files, all within a dynamic TUI. Here are some highlights:
>
> - Regex-Based Commands: Easily interact with files using intuitive command syntaxes.
> - Reactive TUI Directory Navigator: Enjoy a modern terminal experience with both keyboard and mouse support.
> - Live Command Console: See file system operations and system state changes in real time.
> - Asynchronous and Modular Architecture: Built with
asyncio, aiofiles, and other libraries for responsiveness and extensibility. > - Customizable Theming and Configurations: Use CSS themes and JSON-based settings for a personalized workflow.
> - Plugin-Ready Design: Extend the project with your own functionalities without modifying the core.
>
> I built MEINE because I wanted to explore new paradigms in terminal application design while keeping the user experience engaging. I’d love to hear your thoughts—any feedback, suggestions, or ideas for improvements are greatly appreciated!
>
> Check out the repository and don't forget to star the
/r/Python
https://redd.it/1l18f3h
Reddit
From the Python community on Reddit: Introducing MEINE 🌒: A TUI-Based File Manager & Command Console Built with Python
Explore this post and more from the Python community
Open source CLI tool for CodeAct agents
Hey everyone.
Just released Xerus - the CLI tool that runs CodeAct agents powered by HuggingFace Smolagents.
# What my project does:
Like OpenAI Codex or Claude Code, but you can use open-source models like Deepseek R1 0528 or Llama 4.
### Cool features:
- Run different models for different tools (eg. cheap model for web search, powerful one for analysis)
- Add MCP servers in Claude Desktop format - grab them from Glama or Smithery.
- 100% Python code
- Agentic system configuration in one file. Easy to tweak and test different models combination.
# Target Audience
- Data scientists who want to automate repetitive tasks and workflows
- AI/ML engineers building agentic systems and automation pipelines
- Open-source enthusiasts who prefer local models over proprietary APIs
- Researchers who need flexible, customizable AI agents for experiments
- Enterprise developers wanting to avoid vendor lock-in with proprietary tools
- Students/academics learning about agentic systems and AI automation
# Comparison
## vs. OpenAI Codex/GitHub Copilot:
- Price - Run with open-source models
- No vendor lock-in - Choose any model you want
- Privacy - Code execution stays on your machine
- Customizable - Full control over the agent behavior
- Smart routing - Use different models for different tools
## vs. Claude Code:
- Open-source models - Not limited to Anthropic's models
- Cost
/r/Python
https://redd.it/1l1quel
Hey everyone.
Just released Xerus - the CLI tool that runs CodeAct agents powered by HuggingFace Smolagents.
# What my project does:
Like OpenAI Codex or Claude Code, but you can use open-source models like Deepseek R1 0528 or Llama 4.
### Cool features:
- Run different models for different tools (eg. cheap model for web search, powerful one for analysis)
- Add MCP servers in Claude Desktop format - grab them from Glama or Smithery.
- 100% Python code
- Agentic system configuration in one file. Easy to tweak and test different models combination.
# Target Audience
- Data scientists who want to automate repetitive tasks and workflows
- AI/ML engineers building agentic systems and automation pipelines
- Open-source enthusiasts who prefer local models over proprietary APIs
- Researchers who need flexible, customizable AI agents for experiments
- Enterprise developers wanting to avoid vendor lock-in with proprietary tools
- Students/academics learning about agentic systems and AI automation
# Comparison
## vs. OpenAI Codex/GitHub Copilot:
- Price - Run with open-source models
- No vendor lock-in - Choose any model you want
- Privacy - Code execution stays on your machine
- Customizable - Full control over the agent behavior
- Smart routing - Use different models for different tools
## vs. Claude Code:
- Open-source models - Not limited to Anthropic's models
- Cost
/r/Python
https://redd.it/1l1quel
Reddit
Open source CLI tool for CodeAct agents : r/Python
1.4M subscribers in the Python community. The official Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language.
---
If you have questions or are new to Python use r/LearnPython
---
If you have questions or are new to Python use r/LearnPython
D TMLR paper quality seems better than CVPR, ICLR.
I found that quality and correctness-wise TMLR papers seem to be be better than CVPR and ICLR papers on an average with the latter having huge variance in the paper quality. Do people think so as well? If so, why?
/r/MachineLearning
https://redd.it/1l1kttb
I found that quality and correctness-wise TMLR papers seem to be be better than CVPR and ICLR papers on an average with the latter having huge variance in the paper quality. Do people think so as well? If so, why?
/r/MachineLearning
https://redd.it/1l1kttb
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Tuesday Daily Thread: Advanced questions
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1l1xqmw
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1l1xqmw
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
HIRING/RETAINER Django Dev or Small Firm - Emergency Backup for Tiny SaaS
We’re a two-person team running a small Django-based SaaS (Django, Celery, Postgis, Redis, Fly.io, etc.). It’s a live app with paying customers, but we’re small: just the two of us. Oh, and we're married.
We’re responding to a government RFP. Since we’re a tiny shop, we’d like to put someone on retainer as an emergency backup to show continuity of service. Ideally a Django dev or small firm that we could list in our proposals. Preferably one with a LLC/Inc./DBA so we don't have to list just your name.
We don’t expect you to do anything day-to-day, just be on standby with some awareness of our stack and access to the code/docs in case we get hit by a bus.
We’d be willing to pay a small annual fee for this. If the worst ever happens, you’d be the first call.
If that sounds like something you’d offer, drop a comment or DM. Thanks!
/r/django
https://redd.it/1l1zxw2
We’re a two-person team running a small Django-based SaaS (Django, Celery, Postgis, Redis, Fly.io, etc.). It’s a live app with paying customers, but we’re small: just the two of us. Oh, and we're married.
We’re responding to a government RFP. Since we’re a tiny shop, we’d like to put someone on retainer as an emergency backup to show continuity of service. Ideally a Django dev or small firm that we could list in our proposals. Preferably one with a LLC/Inc./DBA so we don't have to list just your name.
We don’t expect you to do anything day-to-day, just be on standby with some awareness of our stack and access to the code/docs in case we get hit by a bus.
We’d be willing to pay a small annual fee for this. If the worst ever happens, you’d be the first call.
If that sounds like something you’d offer, drop a comment or DM. Thanks!
/r/django
https://redd.it/1l1zxw2
Reddit
From the django community on Reddit
Explore this post and more from the django community
FastAPI + Supabase Auth Template
What My Project Does
This is a FastAPI + Supabase authentication template that includes everything you need to get up and running with auth. It supports email/password login, Google OAuth with PKCE, password reset, and JWT validation. Just clone it, add your Supabase and Google credentials, and you're ready to go.
Target Audience
This is meant for developers who need working auth but don't want to spend days wrestling with OAuth flows, redirect URIs, or boilerplate setup. It’s ideal for anyone deploying on Google Cloud or using Supabase, especially for small-to-medium projects or prototypes.
Comparison
Most FastAPI auth tutorials stop at hashing passwords. This template covers what actually matters:
• Fully working Google OAuth with PKCE
• Clean secret management using Google Secret Manager
• Built-in UI to test and debug login flows
• All redirect URI handling is pre-configured
It’s optimized for Google Cloud hosting (note: GCP has usage fees), but Supabase allows two free projects, which makes it easy to get started without paying anything.
Supabase API Scaffolding Template
/r/Python
https://redd.it/1l2bm0g
What My Project Does
This is a FastAPI + Supabase authentication template that includes everything you need to get up and running with auth. It supports email/password login, Google OAuth with PKCE, password reset, and JWT validation. Just clone it, add your Supabase and Google credentials, and you're ready to go.
Target Audience
This is meant for developers who need working auth but don't want to spend days wrestling with OAuth flows, redirect URIs, or boilerplate setup. It’s ideal for anyone deploying on Google Cloud or using Supabase, especially for small-to-medium projects or prototypes.
Comparison
Most FastAPI auth tutorials stop at hashing passwords. This template covers what actually matters:
• Fully working Google OAuth with PKCE
• Clean secret management using Google Secret Manager
• Built-in UI to test and debug login flows
• All redirect URI handling is pre-configured
It’s optimized for Google Cloud hosting (note: GCP has usage fees), but Supabase allows two free projects, which makes it easy to get started without paying anything.
Supabase API Scaffolding Template
/r/Python
https://redd.it/1l2bm0g
GitHub
GitHub - hpohlmann/supabase-api-scaffolding-template: Production-ready FastAPI authentication API template with Supabase integration.…
Production-ready FastAPI authentication API template with Supabase integration. Features email/password auth, Google OAuth (PKCE), JWT validation, and Google Secret Manager support. Perfect scaffol...
Mopad: Gamepad support for Python is finally here!
What my project does:
Browsers have a gamepad API these days, but these weren't exposed to Python notebooks yet. Thanks to mopad, you can now use a widget (made with anywidget!) to control Python with a game controller. It's more useful that you might initially think because this also means that you can build labelling interfaces in your notebook and add labels to data with a device that makes everything feel like a fun video game.
Target audience:
It's mainly meant for ML/AI people that like to work with Python notebooks. The main target for the widget is marimo but because it's made with anywidget it should also work in Jupyter/VSCode/colab.
Comparison:
I'm not aware of other projects that add gamepad support, but one downside that's fair to mention is that this approach only works in browser based notebook because we need the web API. Not all gamepads are supported by all vendors (MacOS only allows for bluetooth gamepads AFAIK), but I've tried a bunch of pads and they all work great!
If you're keen to see a demo, check the YT video here: https://www.youtube.com/watch?v=4fXLB5\_F2rg&ab\_channel=marimo
If you have a gamepad in your hand, you can also try it out on
/r/Python
https://redd.it/1l269h7
What my project does:
Browsers have a gamepad API these days, but these weren't exposed to Python notebooks yet. Thanks to mopad, you can now use a widget (made with anywidget!) to control Python with a game controller. It's more useful that you might initially think because this also means that you can build labelling interfaces in your notebook and add labels to data with a device that makes everything feel like a fun video game.
Target audience:
It's mainly meant for ML/AI people that like to work with Python notebooks. The main target for the widget is marimo but because it's made with anywidget it should also work in Jupyter/VSCode/colab.
Comparison:
I'm not aware of other projects that add gamepad support, but one downside that's fair to mention is that this approach only works in browser based notebook because we need the web API. Not all gamepads are supported by all vendors (MacOS only allows for bluetooth gamepads AFAIK), but I've tried a bunch of pads and they all work great!
If you're keen to see a demo, check the YT video here: https://www.youtube.com/watch?v=4fXLB5\_F2rg&ab\_channel=marimo
If you have a gamepad in your hand, you can also try it out on
/r/Python
https://redd.it/1l269h7
No more exit()? Yay for exit!
I usually use python in the terminal as a calculator or to test out quick ideas. The command to close the Linux terminal is "exit", so I always got hit with the interpreter error/warning saying I needed to use "exit()". I guess python 3.13.3 finally likes my exit command, and my muscle memory has been redeemed!
/r/Python
https://redd.it/1l1zeib
I usually use python in the terminal as a calculator or to test out quick ideas. The command to close the Linux terminal is "exit", so I always got hit with the interpreter error/warning saying I needed to use "exit()". I guess python 3.13.3 finally likes my exit command, and my muscle memory has been redeemed!
/r/Python
https://redd.it/1l1zeib
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Creating a live scoreboard in using Python.
Hi,
For work I usually have to watch some football films and write articles about what I’m watching. On a lot of the teams films I’ve started seeing layouts like this with the game information and a running clock prior to the film of the play starting.
I was wondering if there is a way to link an excel sheet of the game data or use python in a way so that it’s reflected on a PowerPoint slide similar to a scoreboard
For example if I have a sheet with a column for each “down” and “distance” - can I link that sheet so each down and distance is then reflected onto a slide?
/r/Python
https://redd.it/1l2hn9e
Hi,
For work I usually have to watch some football films and write articles about what I’m watching. On a lot of the teams films I’ve started seeing layouts like this with the game information and a running clock prior to the film of the play starting.
I was wondering if there is a way to link an excel sheet of the game data or use python in a way so that it’s reflected on a PowerPoint slide similar to a scoreboard
For example if I have a sheet with a column for each “down” and “distance” - can I link that sheet so each down and distance is then reflected onto a slide?
/r/Python
https://redd.it/1l2hn9e
What is the best way to send/share a Jupyter notebook from itself?
I'm conducting a class on Python for high school students for my local college.
They will be working through a Jupyter notebook in our computer lab with Python being set up by Anaconda.
After the class, we require them to submit their Jupyter notebooks to us, and ideally allow them to easily download it for themselves.
What is the best way to achieve this without requiring them to have a USB drive or having to login to their email to send themselves etc.?
My predecessor set up a throwaway email account and use the
However, it is finicky and the email account keep getting flagged for abuse and fails to send half the time.
EDIT: The current plan is to use Github's gists API to upload the notebook as a gist. The returned gist URL is then sent to a QR code API to return a QR code that students can scan. Everything is done with
/r/Python
https://redd.it/1l2aosj
I'm conducting a class on Python for high school students for my local college.
They will be working through a Jupyter notebook in our computer lab with Python being set up by Anaconda.
After the class, we require them to submit their Jupyter notebooks to us, and ideally allow them to easily download it for themselves.
What is the best way to achieve this without requiring them to have a USB drive or having to login to their email to send themselves etc.?
My predecessor set up a throwaway email account and use the
smtplib and email packages in the notebook itself to email us and the students the notebook. The students just have to enter their own email address in a variable.However, it is finicky and the email account keep getting flagged for abuse and fails to send half the time.
EDIT: The current plan is to use Github's gists API to upload the notebook as a gist. The returned gist URL is then sent to a QR code API to return a QR code that students can scan. Everything is done with
requests in the notebook itself and students don't have to create accounts for anything./r/Python
https://redd.it/1l2aosj
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
This thing just saved me hours on a stupid bug
I was messing around with a django project and ran into this annoying issue where my form
wouldn’t validate but there was no real error showing. i had been going in circles for like two
hours. i asked the assistant about it and dropped in the code and it actually pointed out that i
was missing a clean method on the form to handle a custom field. something i totally overlooked
it even gave me the exact method and explained how to raise the validation error the right way.
copied it in, adjusted a bit and boom fixed
not gonna lie i didn’t expect it to understand what i meant without me explaining everything but
somehow it got the point
whoever built this thing, respect. this kinda help is next level.
/r/django
https://redd.it/1l2ltil
I was messing around with a django project and ran into this annoying issue where my form
wouldn’t validate but there was no real error showing. i had been going in circles for like two
hours. i asked the assistant about it and dropped in the code and it actually pointed out that i
was missing a clean method on the form to handle a custom field. something i totally overlooked
it even gave me the exact method and explained how to raise the validation error the right way.
copied it in, adjusted a bit and boom fixed
not gonna lie i didn’t expect it to understand what i meant without me explaining everything but
somehow it got the point
whoever built this thing, respect. this kinda help is next level.
/r/django
https://redd.it/1l2ltil
Reddit
From the django community on Reddit
Explore this post and more from the django community
Wednesday Daily Thread: Beginner questions
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1l2rfyx
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1l2rfyx
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Best library for Google Maps/address functionality?
I'm working on a project that will have addresses tied to various models. I would like to have a view that will display all of them as markers on a map, etc.
I have tried django-google-maps, which seems to do the trick with the backend admin, but it leaves a bit to be desired on the frontend, for example I don't want to show the map preview on the frontend, just a single autocomplete address field.
It would also be nice if later I could make views with dropdowns by state/country, which I don't think can be done with django-google-maps.
How are others implementing this?
I've also tried making my own core "Address" model that would be modeled after what google maps uses, with the idea that I can tie the logic of that model to others, but I'm struggling to make things work logically to where I can add the field easily to other models, and into their forms.py, etc.
/r/django
https://redd.it/1l2lvqh
I'm working on a project that will have addresses tied to various models. I would like to have a view that will display all of them as markers on a map, etc.
I have tried django-google-maps, which seems to do the trick with the backend admin, but it leaves a bit to be desired on the frontend, for example I don't want to show the map preview on the frontend, just a single autocomplete address field.
It would also be nice if later I could make views with dropdowns by state/country, which I don't think can be done with django-google-maps.
How are others implementing this?
I've also tried making my own core "Address" model that would be modeled after what google maps uses, with the idea that I can tie the logic of that model to others, but I'm struggling to make things work logically to where I can add the field easily to other models, and into their forms.py, etc.
/r/django
https://redd.it/1l2lvqh
Reddit
From the django community on Reddit
Explore this post and more from the django community
Frontend for backend dev
I've been writing this backend, got to a stage where I need to get a frontend to keep things going, I know just html and css, then I decided to turn to AI to write the front end which is turning out just fine, some include JS which I have absolutely no idea about JS, thw only thing ai write is html and css so far, ive been the one writing the api views myself, it doesn't look bad on a resume as a backend developer when someone is looking at it, or does it?
Is that vibe coding ?
/r/django
https://redd.it/1l2amxg
I've been writing this backend, got to a stage where I need to get a frontend to keep things going, I know just html and css, then I decided to turn to AI to write the front end which is turning out just fine, some include JS which I have absolutely no idea about JS, thw only thing ai write is html and css so far, ive been the one writing the api views myself, it doesn't look bad on a resume as a backend developer when someone is looking at it, or does it?
Is that vibe coding ?
/r/django
https://redd.it/1l2amxg
Reddit
From the django community on Reddit
Explore this post and more from the django community
pyleak - detect leaked asyncio tasks, threads, and event loop blocking in Python
What
Target Audience
This is a production-ready testing tool for Python developers building concurrent async applications. It's particularly valuable for teams working on high-throughput async services (web APIs, websocket servers, data processing pipelines) where small leaks compound into major performance issues under load.
The Problem It Solves
In concurrent async code, it's surprisingly easy to create tasks without awaiting them, or accidentally block the event loop with synchronous calls. These issues often don't surface until you're under load, making them hard to debug in production.
Inspired by Go's goleak package, adapted for Python's async patterns.
PyPI:
GitHub: https://github.com/deepankarm/pyleak
/r/Python
https://redd.it/1l2y5rz
What
pyleak Doespyleak is a Python library that detects resource leaks in asyncio applications during testing. It catches three main issues: leaked asyncio tasks, event loop blocking from synchronous calls (like time.sleep() or requests.get()), and thread leaks. The library integrates into your test suite to catch these problems before they hit production.Target Audience
This is a production-ready testing tool for Python developers building concurrent async applications. It's particularly valuable for teams working on high-throughput async services (web APIs, websocket servers, data processing pipelines) where small leaks compound into major performance issues under load.
The Problem It Solves
In concurrent async code, it's surprisingly easy to create tasks without awaiting them, or accidentally block the event loop with synchronous calls. These issues often don't surface until you're under load, making them hard to debug in production.
Inspired by Go's goleak package, adapted for Python's async patterns.
PyPI:
pip install pyleakGitHub: https://github.com/deepankarm/pyleak
/r/Python
https://redd.it/1l2y5rz
GitHub
GitHub - uber-go/goleak: Goroutine leak detector
Goroutine leak detector. Contribute to uber-go/goleak development by creating an account on GitHub.
Whitenoise serving original js files alongside hashed files
Hi, I've been struggling with serving static files in deployment in my django app. It's a simple monolithic architecture using vanilla js for front end. I use nginx to serve the static files and whitenoise to generate the hashed versions into a single directory. The problem is when I check the static folder I see also original files alongside hashed versions and this results in having a multiple event listeners being triggered on the same event and lots of bugs. I found this configuration to avoid copying original files: WHITENOISE_KEEP_ONLY_HASHED_FILES = True
when I set this I see that for some reason only js files that are imported in the html file as script are imported and imports that are required from inside js files are failing. I'm guessing it's looking for original file in the static folder and with this config they don't exist.
Everything is served in one VPS server.
Anyways it's a huge mess, I just hope someone has faced this issue and has a fix.
I'm thinking about using webpack or vite but are not keen on adding 3rd part dependencies if there's a simple fix.
/r/django
https://redd.it/1l300jy
Hi, I've been struggling with serving static files in deployment in my django app. It's a simple monolithic architecture using vanilla js for front end. I use nginx to serve the static files and whitenoise to generate the hashed versions into a single directory. The problem is when I check the static folder I see also original files alongside hashed versions and this results in having a multiple event listeners being triggered on the same event and lots of bugs. I found this configuration to avoid copying original files: WHITENOISE_KEEP_ONLY_HASHED_FILES = True
when I set this I see that for some reason only js files that are imported in the html file as script are imported and imports that are required from inside js files are failing. I'm guessing it's looking for original file in the static folder and with this config they don't exist.
Everything is served in one VPS server.
Anyways it's a huge mess, I just hope someone has faced this issue and has a fix.
I'm thinking about using webpack or vite but are not keen on adding 3rd part dependencies if there's a simple fix.
/r/django
https://redd.it/1l300jy
Reddit
From the django community on Reddit
Explore this post and more from the django community
CarbonKivy - IBM's Carbon Design Components for Kivy
# What My Project Does
CarbonKivy is a Python library that integrates IBM's Carbon Design System with the Kivy framework. It provides a modern, accessible, and user-friendly UI toolkit inspired by Carbon’s design principles, enabling developers to create consistent and visually appealing applications in Kivy. CarbonKivy is a next-generation toolkit for developers looking to create professional-grade applications using the power of Kivy coupled with the design excellence of Carbon Design principles.
Github: CarbonKivy
Demo application: Carbonify
Documentation: CarbonKivy docs
# Target Audience
Its meant for Android, iOS, Windows, Linux and macOS developers.
This can be used for both production and personal projects.
# Comparison
Many of us are aware of KivyMD - Google's Material Design Components for Kivy.
CarbonKivy follows a whole different design system by IBM i.e. the Carbon Design System. This project is in Active Development and will be adding more available components as in the latest Carbon Design System.
Our project follows a whole different strategy and design priciples for more optimized and user friendly experience.
/r/Python
https://redd.it/1l2wwmp
# What My Project Does
CarbonKivy is a Python library that integrates IBM's Carbon Design System with the Kivy framework. It provides a modern, accessible, and user-friendly UI toolkit inspired by Carbon’s design principles, enabling developers to create consistent and visually appealing applications in Kivy. CarbonKivy is a next-generation toolkit for developers looking to create professional-grade applications using the power of Kivy coupled with the design excellence of Carbon Design principles.
Github: CarbonKivy
Demo application: Carbonify
Documentation: CarbonKivy docs
# Target Audience
Its meant for Android, iOS, Windows, Linux and macOS developers.
This can be used for both production and personal projects.
# Comparison
Many of us are aware of KivyMD - Google's Material Design Components for Kivy.
CarbonKivy follows a whole different design system by IBM i.e. the Carbon Design System. This project is in Active Development and will be adding more available components as in the latest Carbon Design System.
Our project follows a whole different strategy and design priciples for more optimized and user friendly experience.
/r/Python
https://redd.it/1l2wwmp
Carbondesignsystem
Carbon Design System
Carbon is IBM’s open source design system for products and digital experiences. With the IBM Design Language as its foundation, the system consists of working code, design tools and resources, human interface guidelines, and a vibrant community of contributors.