Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
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/1njtelc
Django forms with bootstrap styling, how do you do it?

I like using Bootstrap because it makes it easy to make a website responsive to different screen sizes. There are several libraries out there who provide you with some way to get the needed bootstrap classes into forms while rendering.

However everytime I try one of these, I end up in a dead end. On a recent project I tried cirspy forms. It seemed alright at first. The first thing that frustrated me: it turns out they put an entire layer of layouting on top which is kinda clunky but workable. But then it is impossible to use a custom widget with a custom template. I just can't make crispy forms use the template of the custom widget.

So I was wondering if anyone found a proper way to make forms include bootstrap classes without a library introducing as many new problems as they solve old ones.

/r/django
https://redd.it/1nk5kvy
Django static files not being collected/deployed on Railway (Docker + Whitenoise)

Hi,

I’m deploying a Django app on Railway using Docker and Whitenoise, and I keep hitting the same problem:
my app works, but all static files (CSS/JS/images) return 404s.

What I see in logs:

Starting Container


2025-09-18 17:00:33 +0000 1 INFO Starting gunicorn 23.0.0


2025-09-18 17:00:33 +0000 1 INFO Listening at: http://0.0.0.0:8080 (1)


2025-09-18 17:00:33 +0000 1 INFO Using worker: sync


2025-09-18 17:00:33 +0000 2 INFO Booting worker with pid: 2


/usr/local/lib/python3.12/site-packages/django/core/handlers/base.py:61: UserWarning: No directory at: /app/staticfiles/


mwinstance = middleware(adaptedhandler)

UserWarning: No directory at: /app/staticfiles/


And HTTP logs show things like:

GET /static/name/styles.css 404
GET /static/name/name.js 404
GET /static/image.png 404


My setup:

Dockerfile with `python:3.12-slim`
Whitenoise enabled:STATIC_URL = "/static/" STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
Procfile originally had:release: python manage.py migrate && python manage.py collectstatic --noinput web: gunicorn project.wsgi
Tried switching to an **entrypoint.sh** script that

/r/django
https://redd.it/1nke0bb
[P] We built mmore: an open-source multi-GPU/multi-node library for large-scale document parsing

We are a student group from EPFL and we have been working on a tool called mmore, and thought it might be useful to share it here. Maybe the community will find it useful.

You can think of mmore as something in the spirit of [Docling](https://github.com/docling-project/docling), but designed from the ground up to run natively on multi-GPU and multi-node setups. As the backend OCR for PDFs (and images) we use [Surya](https://github.com/datalab-to/surya), which we’ve found to be both very accurate and fast. For those with limited GPU resources, we also provide a lightweight β€œfast” mode. It skips OCR (so it cannot process scanned files) but still works well for born-digital documents.

In a [paper](https://www.arxiv.org/pdf/2509.11937) we released a few months ago, we showed that mmore achieves both speed and accuracy gains over Docling (maybe this has changed by now with the latest Granite-Docling). Right now, it supports a broad range of formats: PDFs, DOCX, PPTX, XLSX, MD, EML (emails), TXT, HTML, as well as videos and audio (MP4, MOV, AVI, MKV, MP3, WAV, AAC).

The use cases are flexible. For example:

* Unlocking text and image data from previously unprocessed files, enabling larger dataset creation (similar to what Docling + HuggingFace did a few days ago

/r/MachineLearning
https://redd.it/1nkdbin
Error running app

Hello everyone, I am currently trying to implement Oauth with google in a flask app for a learning project. Building the normal auth modules with email and username work fine, however as I refactor the code to work with oauth using the python oauthlib and requests modules, I am getting this error:

```bash
(.venv)daagi@fedora:~/Desktop/sandbox/oauth-primer$ python app.py
Usage: app.py [OPTIONS]
Try 'app.py --help' for help.

Error: While importing 'app', an ImportError was raised:

Traceback (most recent call last):
File "/home/daagi/Desktop/sandbox/oauth-primer/.venv/lib64/python3.13/site-packages/flask/cli.py", line 245, in locate_app
__import__(module_name)
~~~~~~~~~~^^^^^^^^^^^^^
File "/home/daagi/Desktop/sandbox/oauth-primer/app.py", line 1, in <module>
from website import create_app
ImportError: cannot import name 'create_app' from 'website' (consider renaming '/home/daagi/Desktop/sandbox/oauth-primer/website/__init__.py' if it has the same name as a library you intended to import)```

This is my file hierachy structure:

```bash
.
β”œβ”€β”€ app.py
β”œβ”€β”€ LICENSE
β”œβ”€β”€ oauth.log
β”œβ”€β”€ __pycache__
β”‚   └── app.cpython-313.pyc
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ TODO.md
└── website
β”œβ”€β”€ auth.py
β”œβ”€β”€ database
β”‚   └── db.sql
β”œβ”€β”€ db.py
β”œβ”€β”€ __init__.py
β”œβ”€β”€ models.py
β”œβ”€β”€ oauth.py
β”œβ”€β”€ __pycache__
β”œβ”€β”€ static
β”‚   β”œβ”€β”€ style
β”‚   β”‚   └── style.css


/r/flask
https://redd.it/1nk2otw
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/1nkohvq
Today I learned that Python doesn't care about how many spaces you indent as long as it's consistent

Call me stupid for only discovering this after 6 years, but did you know that you can use as many spaces you want to indent, as long as they're consistent within one indented block. For example, the following (awful) code block gives no error:

def say_hi(bye = False):
 print("Hi")
 if bye:
        print("Bye")

/r/Python
https://redd.it/1nkidxq
enso: A functional programming framework for Python

Hello all, I'm here to make my first post and 'release' of my functional programming framework, enso. Right before I made this post, I made the repository public. You can find it here.

# What my project does

enso is a high-level functional framework that works over top of Python. It expands the existing Python syntax by adding a variety of features. It does so by altering the AST at runtime, expanding the functionality of a handful of built-in classes, and using a modified tokenizer which adds additional tokens for a preprocessing/translation step.

I'll go over a few of the basic features so that people can get a taste of what you can do with it.

1. Automatically curried functions!

How about the function add, which looks like

def add(x:a, y:a) -> a:
return x + y

Unlike normal Python, where you would need to call add with 2 arguments, you can call this add with only one argument, and then call it with the other argument later, like so:

f = add(2)
f(2)
4

2. A map operator

Since functions are automatically curried, this

/r/Python
https://redd.it/1nksvm0
T-Strings: What will you do?

Good evening from my part of the world!

I'm excited with the new functionality we have in Python 3.14. I think the feature that has caught my attention the most is the introduction of t-strings.

I'm curious, what do you think will be a good application for t-strings? I'm planning to use them as better-formatted templates for a custom message pop-up in my homelab, taking information from different sources to format for display. Not reinventing any functionality, but certainly a cleaner and easier implementation for a message dashboard.

Please share your ideas below, I'm curious to see what you have in mind!

/r/Python
https://redd.it/1nkq8pt
FYI: PEP 2026 (CalVer) was shot down back in February - no jumping from 3.14.y to 3.25.y or 2025.x.y

PEP2026 discussed replacing the current Semantic Versioning with a Calender Versioning, where some options were 26.x.y (where 26 was from 2026), or 3.26.y (because there's currently a yearly release, they would just shift the minor version about 10 points).

Luckily this idea was shot down, back in Feb, because I was NOT looking forward to having to mess around with versions.

---

I'm mentioning it, because I recall a discussion back in Januari that they were going to do this, and quite a few people disliked the idea, so I'm happy to inform you that it's dead.

---

edit: It was shot down in this post

/r/Python
https://redd.it/1nl0x1p
Herramientas para trabajar en Django de mode API first

Quiero empezar a trabajar con Django y DRF definiendo primero la API (API first). Hago una definiciΓ³n de OpenAPI en un fichero YAML, pero no encuentro buenas herramientas para comprobar que mis vistas de Django cumplen con ese contrato.

/r/django
https://redd.it/1nl49u5
Best way to document my code ?

Hi, I would like to cleanly document my Python+Flask code ; this is my first time so I'm looking for help.

For now I've been doing it in a javadoc-style (see below), but i don't know if there are tools integrating it (VSCode integration, HTML doc generation, and other intelligent features). For instance I'm seing that python's typing library allows features similar to \\@param and \\@return that are closer to the code, that feels like a better idea than what I'm doing already.

In short, what is the standard(s), and what are the tools to exploit ?


Thanks in advance !



\---



Example of what I'm doing currently and want to improve on :

def routeAPIRequest(self, configFromPayload):
        """
        @param llmConfig a config dict, such as the output from processPayloadData()
                            can be None if no config coverride is meant

        @return Response    (meant to be transmitted in

/r/flask
https://redd.it/1nl4q4l
A script to get songs from a playlist with matching total length

#What my project does
Basically, you input:

- A public youtube playlist

- Target duration

You get:

- Song groups with a matching total length

#Target Audience

So I think this is one of the most specific 'problems'..

I've been making a slow return to jogging, and one of the changes to keep things fresh was to jog until the playlist ended. (Rather than meters, or a route)

I am incrementing the length of the playlist by 15 seconds between each run, and each time finding a group of songs with a matching length can be tiring, which is why I thought of this πŸ˜…

 

So I guess this is for people who want a shuffled playlist, with a specific duration, for some reason.

This is 'py-playlist-subset', try it out πŸ‘€

https://github.com/Tomi-1997/py-playlist-subset

/r/Python
https://redd.it/1nl4bxv
Doubt regarding a resource

I wanted ask you guys how is this django tutorial???: https://www.youtube.com/playlist?list=PL4cUxeGkcC9iqfAag3a\_BKEX1N43uJutw , this is a tutorial by net ninja

I know people here suggest the official docs over everything else, but i wanna get done with the basics of django and straight away start with building projects

If you guys have any other resource suggestion i am all ears

/r/djangolearning
https://redd.it/1nkw4tp
I just released reaktiv v0.19.2 with LinkedSignals! Let me explain what Signals even are

I've been working on this reactive state management library for Python, and I'm excited to share that I just added LinkedSignals in v0.19.2. But first, let me explain what this whole "Signals" thing is about.

# I built Signals = Excel for your Python code

You know that frustrating bug where you update some data but forget to refresh the UI? Or where you change one piece of state and suddenly everything is inconsistent? I got tired of those bugs, so I built something that eliminates them completely.

Signals work just like Excel - change one cell, and all dependent formulas automatically recalculate:

from reaktiv import Signal, Computed, Effect

# Your data (like Excel cells)
name = Signal("Alice")
age = Signal(25)

# Automatic formulas (like Excel =A1&" is "&B1&" years old")
greeting = Computed(lambda: f"{name()} is {age()} years old")

# Auto-display (like Excel charts that update automatically)
display = Effect(lambda: print(greeting()))
# Prints: "Alice is 25 years old"



/r/Python
https://redd.it/1nl9f0h
Saturday Daily Thread: Resource Request and Sharing! Daily Thread

# Weekly Thread: Resource Request and Sharing πŸ“š

Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!

## How it Works:

1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.

## Guidelines:

Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.

## Example Shares:

1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.

## Example Requests:

1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.

Share the knowledge, enrich the community. Happy learning! 🌟

/r/Python
https://redd.it/1nljibj