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
How does Python 3.13 perform vs 3.11 in single-threaded mode?

When Python 3.12 was released, I had held back from migrating my Python 3.11 applications as there were some mixed opinions back then about Python 3.12's performance vs 3.11. Then, 3.13 was released, and I decided to give it some time to mature before evaluating it.

Now, we're in Python 3.13.3 and the last bugfix release of 3.11 is out. When I Google'd, I only found performance studies on Python 3.13 in its experimental free-threaded mode, which is definitely slower than 3.11. However, I found nothing about 3.13 in regular GIL mode.

What are you guys' thoughts on this? Performance-wise, how is Python 3.13 compared to Python 3.11 when both are in GIL-enabled, single-threaded mode? Does the experimental JIT compiler in 3.13 help in this regard?

/r/Python
https://redd.it/1k8zcdi
I've created a simple social media scheduling app with just Django and Alpinejs

Django is such an underrated web framework.

Not sure about you, but my feed is full of javascript frameworks like Nextjs (which introduces breaking changes every 3 months) and is no where near the features Django provides.

But, that's probably because there are more javascript devs than python devs?

And since Django is an old framework with great documentation and questions on the internet on various topics - it works pretty well with LLMs and it helps with speeding up development.

The app is open-source you can check it out here:

https://github.com/ClimenteA/social-media-posts-scheduler


Works as a boilerplate too if you remove the specific code for the app.





/r/django
https://redd.it/1k91zuw
Favorite Admin UI configs

What are some of your favorite admin UI configurations?

Django examples, libraries, packages all welcome!

I’m super basic, just adding backend functionality stuff, organizing custom app labels with a simple 50 line custom_admin.py file etc, but I’m thinking to give the ui a makeover, might even do something dynamic..?

I see some neat lil packages and stuff on a few YT vids but -

Whatchy’all doin’?

🙂

/r/django
https://redd.it/1k975fm
Server and my flask app keeps crashing on VPS.

Hello, I am running a VPS with my flask [app.py](http://app.py) which I can access with ssh. My application is running well for one or two days and then it suddenly stops. I tried to resolve it for many rounds with ChatGPT or LeChat but it won't stop happening. My logs are not helping so much and all the logs in error.txt and output.log also appear when the server is still running fine.

**Now I wanted to ask if I am doing something fundamentally wrong? What am I missing..**

I tried:

* fail2ban. Are bots crashing it?
* checking memory which seemed to be fine
* running a cronjob (monitor\_flask.sh) to at least restart it. But that does not seem to work either.

**Last logs from my error.txt**:

>multiple of these lines >>> 2025-04-26 21:20:06,126 - app - ERROR - Unhandled Exception: 403 Forbidden: You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.

**Last logs from my output.log**

>

>multiple of these lines >>>
\[Sun Apr 27 09:29:01 UTC 2025\] Starting monitor\_flask.sh - Unique Message

>\[Sun Apr 27 09:29:01 UTC 2025\] Activating virtual environment...

>\[Sun Apr 27 09:29:01 UTC 2025\] Virtual environment activated.

>\[Sun Apr 27 09:29:01 UTC 2025\] Flask app

/r/flask
https://redd.it/1k90a8h
RESTful APIs with Flask!!

hello friends! I saw that many of you liked the unofficial flask wiki that me and my colleagues created. We've created a full wiki article on RESTful APIs at the request of some people :)!!! https://flaskwiki.wiki/rs/restful-apis

So I'm coming to you again to ask for feedback, if you have any opinion or even want to add content to the article you can contact me or comment here !!!

Guys really, thank you so much to the people who contributed and the people who helped, especially superchose43, Aland_L, Jason32 they brought a real expertise to this article, I knew so little about restfull ... now i've been in for 3 days straight and I feel like I have hundreds of ideas lmaoo TT

/r/flask
https://redd.it/1k9dx4j
I built ErrorTrace Pro — Make Python errors visual, easier to understand, and log to the cloud

Hi everyone 👋,

I always felt Python error tracebacks were... ugly and sometimes confusing, especially on bigger projects. So I created ErrorTrace Pro — a library to:

Make tracebacks beautiful and visual
Suggest solutions for common errors
Send errors automatically to the cloud for analysis
Help debug faster and smarter

# Why I built it:

I got tired of reading endless walls of red text, so I decided to make error handling more intuitive, clear, and developer-friendly.

GitHub: https://github.com/Hamed233/ErrorTrace-Pro

PyPi: https://pypi.org/project/errortrace-pro/

/r/Python
https://redd.it/1k95s2g
Django Mentor or Learning Partner in Taiwan

Learning Django in Taiwan was kind of hard to find a mentor or people to work with. I can barely find people that using Django or talking about it.
Currently, I'm learning it on my own, but I really happy to have a person that can talk to, even help me to check or discuss even just sharing the progress , so just wondering is there any people that were also into Django are in Taiwan.

/r/djangolearning
https://redd.it/1k8thzq
Best way to upload multiple images.

many to many field doesn't allow multiple image files to be selected and uploaded at once. What work arounds are there for this? Thanks in advance!

/r/django
https://redd.it/1k9i1kk
Deploying Flask app with frontend

I have just created a Flask app to learn Flask and try out TailwindCSS. I want to deploy it for free (it’s a fun project so traffic will be almost zero). It has two Python files: the first contains the program logic that fetches user data using a GraphQL query and returns it, and the second contains the Flask code. For the frontend, I’ve used HTML/CSS, JavaScript, and TailwindCSS.I have not used any database in this program.
How can I safely deploy this app, so I don’t end up with a huge bill if a spammer attacks?

/r/flask
https://redd.it/1k9148r
Advices for cloud

I'm currently working on a web site for a small business and for holding its backend (made in django) I I thought of using google cloud for its pricing, which advices do you give me to do this?

/r/django
https://redd.it/1k9o07q
Monday Daily Thread: Project ideas!

# Weekly Thread: Project Ideas 💡

Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.

## How it Works:

1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.

## Guidelines:

* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.

# Example Submissions:

## Project Idea: Chatbot

**Difficulty**: Intermediate

**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar

**Description**: Create a chatbot that can answer FAQs for a website.

**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)

# Project Idea: Weather Dashboard

**Difficulty**: Beginner

**Tech Stack**: HTML, CSS, JavaScript, API

**Description**: Build a dashboard that displays real-time weather information using a weather API.

**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)

## Project Idea: File Organizer

**Difficulty**: Beginner

**Tech Stack**: Python, File I/O

**Description**: Create a script that organizes files in a directory into sub-folders based on file type.

**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)

Let's help each other grow. Happy

/r/Python
https://redd.it/1k9i87u
How are social logins implemented

So i know different libraries like all-auth and other but how exactly are they to be used. i typically build Django rest apis and i am very confused about the whole concept of implementing them through rest framework, what endpoint am i supposed to make the user go to and what type of request do they need to do to get a social media login.

is there any guide on this any resources for like beginners.
please help thank you

/r/djangolearning
https://redd.it/1k9pfza
NEED A JOB/FREELANCING | Django Developer | 4-5+ years| Remote

Hi,

I am a Python Django Backend Engineer with over 4+ years of experience, specializing in Python, Django, DRF(Rest Api) , Flask, Kafka, Celery3, Redis, RabbitMQ, Microservices, AWS, Devops, CI/CD, Docker, and Kubernetes.
My expertise has been honed through hands-on experience and can be explored in my project at https://github.com/anirbanchakraborty123/gkart_new.
I contributed to https://www.tocafootball.com/,https://www.snackshop.app/, https://www.mevvit.com, http://www.gomarkets.com/en/, https://jetcv.co, designed and developed these products from scratch and scaled it for thousands of daily active users as a Backend Engineer 2.

I am eager to bring my skills and passion for innovation to a new team. You should consider me for this position, as I think my skills and experience match with the profile. I am experienced working in a startup environment, with less guidance and high throughput. Also, I can join immediately.


Please acknowledge this mail.
Contact me on whatsapp/call +91-8473952066.

I hope to hear from you soon.
Email id = anirbanchakraborty714@gmail.com


/r/djangolearning
https://redd.it/1k8fojs
A month into Django, I made a website for my friend's side hustle. Please rate my work :)

Hi everyone. I started with Django inspired by the community and by the popularity of Django. My friend approached me to make a website for his mentorship side hustle where he plans to provide one on one mentorship to students. Please visit the site and let me know how is the UI and backed? You can also test the website by scheduling a call.

Website link: https://apnamentor.pythonanywhere.com/

As a beginner, your responses are deeply appreciated

/r/django
https://redd.it/1k9r9x0
How can I remove CKEditor buttons on my page?

I'm trying to configure the flask ckeditor by removing some buttons and also to style it a bit. Right now I have this snippet in my html file:

<div class="mb-3">
{{ form.body.label(class="form-label") }}
{{ form.body(class="form-control") }}
</div>

At the end I have:

{{ ckeditor.load() }}
{{ ckeditor.config(name='body') }}

I'd like to remove the 'About CKEditor' button, is there a way to do this without custom js scripts? Is there a way to customize the color of the editor, its border etc..

/r/flask
https://redd.it/1k9yl09
'Django Spellbook' - Markdown Content Management System (my first library)

I wanted to show off the Django Library I've been working on!

https://preview.redd.it/n9rzz0rbrlxe1.png?width=1036&format=png&auto=webp&s=9bad311c3ff9dde10761a59732223bdb646b4b96

Django Spellbook extends Django's templating and rendering capabilities with a focus on markdown-based content. It transforms markdown files into fully-rendered Django templates with auto-generated views and URLs, eliminating boilerplate code while maintaining Django's flexibility.

This website is powered by Django Spellbook: https://django-spellbook.org/

Here is the github: https://github.com/smattymatty/django\_spellbook (Stars are appreciated!)

I hope you like it I made it because I write a lot of markdown, and wanted a way to mix Django template language with simple markdown in a way where non-coders can contribute styled and user friendly interfaces for their content.

If you try the library, please report any bugs, issues, or feature requests! I plan on working on this for a while, I would like it to become a respected open-source library in the Django framework :)

/r/django
https://redd.it/1k9zwt3
Flask-based via telegram bot

I have built a secure and scalable Flask-based platform that integrates with a Telegram bot to streamline photo uploads into an online album.
Users can seamlessly create categories and assign photos directly through the bot interface.
All interactions are safeguarded with a robust authentication flow, requiring username, password, and TOTP (Time-based One-Time Password) verification to ensure high-level security and user integrity.

Any more features or ideas you can suggest for me?

/r/flask
https://redd.it/1k88wu1
D IJCAI 2025 Paper Result & Discussion

This is the discussion for accepted/rejected papers in IJCAI 2025. Results are supposed to be released within the next 24 hours.

/r/MachineLearning
https://redd.it/1k9twhg