Best way to minify HTML/CSS/JS in a Django + Tailwind project?
I'm working on a Django project with TailwindCSS (using django-tailwind) and looking for the best way to minify my static files (HTML, CSS, and JS) for production.
I initially tried writing a middleware that uses regular expressions to minify HTML responses (removing whitespace/comments), but then realized this might actually slow down the site instead of improving performance, especially under high traffic.
I also looked into some libraries like django-minify-html, but they also rely on middleware, so I’m concerned about runtime overhead.
Then I thought — maybe I could hook into the build process. Like, when I run:
\- python manage.py tailwind build
\- python manage.py collectstatic
…maybe there’s a way to minify things at that point. But I'm not sure how to do that or what the right approach is.
What's the recommended way to minify static files in a Django + Tailwind project?
ps. Used ChatGPT
/r/django
https://redd.it/1le10ev
I'm working on a Django project with TailwindCSS (using django-tailwind) and looking for the best way to minify my static files (HTML, CSS, and JS) for production.
I initially tried writing a middleware that uses regular expressions to minify HTML responses (removing whitespace/comments), but then realized this might actually slow down the site instead of improving performance, especially under high traffic.
I also looked into some libraries like django-minify-html, but they also rely on middleware, so I’m concerned about runtime overhead.
Then I thought — maybe I could hook into the build process. Like, when I run:
\- python manage.py tailwind build
\- python manage.py collectstatic
…maybe there’s a way to minify things at that point. But I'm not sure how to do that or what the right approach is.
What's the recommended way to minify static files in a Django + Tailwind project?
ps. Used ChatGPT
/r/django
https://redd.it/1le10ev
Reddit
From the django community on Reddit
Explore this post and more from the django community
Need Help Deploying Django App with Database
Hey everyone,
I'm trying to deploy my Django application, and I'm stuck when it comes to deploying it along with the database (sqlite). I’ve developed everything locally and it's working fine, but I’m confused about how to properly set up the production database (sqlite). I have explored various options like AWS , render but I'm stuck . Also I want it with custom domain.
/r/django
https://redd.it/1ldr31p
Hey everyone,
I'm trying to deploy my Django application, and I'm stuck when it comes to deploying it along with the database (sqlite). I’ve developed everything locally and it's working fine, but I’m confused about how to properly set up the production database (sqlite). I have explored various options like AWS , render but I'm stuck . Also I want it with custom domain.
/r/django
https://redd.it/1ldr31p
Reddit
From the django community on Reddit
Explore this post and more from the django 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/1ld8te6
# 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/1ld8te6
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
Django Channels
Hi so i need to implement notifications in my application and I have a few questions about Django channel layer(COuld really use some help here):
1. Does every consumer instance get its own channel layer name ? ( lets say i have 2 websocket URLs mapped to 2 consumers , and every client establishes a connection to both these consumers via the url router )
2. Is the channel layer name uniquely generated only for that specific connection ? and therefore might be different if the same consumer spins up another instance of itself for a connection ?
3. How do i store and access these channel layer names for each user when i need to add them to a group or something . Do i just store them in a database for the duration of the connection and get rid of them after ?
/r/djangolearning
https://redd.it/1lak7cu
Hi so i need to implement notifications in my application and I have a few questions about Django channel layer(COuld really use some help here):
1. Does every consumer instance get its own channel layer name ? ( lets say i have 2 websocket URLs mapped to 2 consumers , and every client establishes a connection to both these consumers via the url router )
2. Is the channel layer name uniquely generated only for that specific connection ? and therefore might be different if the same consumer spins up another instance of itself for a connection ?
3. How do i store and access these channel layer names for each user when i need to add them to a group or something . Do i just store them in a database for the duration of the connection and get rid of them after ?
/r/djangolearning
https://redd.it/1lak7cu
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
I wish all vibe coders used Django...
Batteries included frameworks like Django are massively underrated for indie founders with limited coding knowledge because ... SOMEONE ELSE already solved their security, auth, design patterns etc for them.
I've found it so easy to spin up a new Django project with Cursor, and just get all the basic stuff done before I get to work.
Whereas I've just taken over a 'vibe coded' next.js application from another agency that has no security at all anywhere and I was able to just curl the api endpoints and extract everything.
Not even one of those 'API key in public' situations... just no auth at all...
We need to be louder as a community about the wonderful benefits of starting a project in Django. When I was new to web coding Django saved me as a n00b dev all those years ago by handling that stuff and having easy ways to do it.
It seems that it can also save the AI...
/r/django
https://redd.it/1le6vl0
Batteries included frameworks like Django are massively underrated for indie founders with limited coding knowledge because ... SOMEONE ELSE already solved their security, auth, design patterns etc for them.
I've found it so easy to spin up a new Django project with Cursor, and just get all the basic stuff done before I get to work.
Whereas I've just taken over a 'vibe coded' next.js application from another agency that has no security at all anywhere and I was able to just curl the api endpoints and extract everything.
Not even one of those 'API key in public' situations... just no auth at all...
We need to be louder as a community about the wonderful benefits of starting a project in Django. When I was new to web coding Django saved me as a n00b dev all those years ago by handling that stuff and having easy ways to do it.
It seems that it can also save the AI...
/r/django
https://redd.it/1le6vl0
Reddit
From the django community on Reddit
Explore this post and more from the django community
My open source project gets 1100+ monthly downloads
https://github.com/ivanrj7j/Font
This is a project that i did because of my frustrations with opencv
opencv does not provide you a solution for rendering custom fonts in their image, and i was kind of pissed and looked for libraries online and found one, but that library had some issues, so i created my own.
about the library:
now when i look into stats, i am seeing almost 1100+ downloads which made me very proud
thats all rant over
/r/Python
https://redd.it/1leazx1
https://github.com/ivanrj7j/Font
This is a project that i did because of my frustrations with opencv
opencv does not provide you a solution for rendering custom fonts in their image, and i was kind of pissed and looked for libraries online and found one, but that library had some issues, so i created my own.
about the library:
The Font library is designed to solve the problem of rendering text with custom TrueType fonts in OpenCV applications. OpenCV, a popular computer vision library, does not natively support the use of TrueType fonts, which can be a limitation for many projects that require advanced text rendering capabilities.This library provides a simple and efficient solution to this problem by allowing developers to use custom fonts in their OpenCV projects. It abstracts away the low-level details of font rendering, providing a clean and intuitive API for text rendering.now when i look into stats, i am seeing almost 1100+ downloads which made me very proud
thats all rant over
/r/Python
https://redd.it/1leazx1
GitHub
GitHub - ivanrj7j/Font: This project aims to create a freetype based font renderer with numpy array for speedy performance with…
This project aims to create a freetype based font renderer with numpy array for speedy performance with opencv - ivanrj7j/Font
I built a free self-hosted application for effortless video transcription and translation
Hey everyone,
I wanted to share Txtify, a project I've been working on. It's a free, open-source web application that transcribes and translates audio and video using AI models.
GitHub Repository: https://github.com/lkmeta/txtify
Online Demo: Try the online simulation demo at Txtify Website.
What My Project Does
Effortless Transcription and Translation: Converts audio and video files into text using advanced AI models like Whisper from Hugging Face.
Multi-Language Support: Transcribe and translate in over 30 languages.
Multiple Output Formats: Export results in formats such as .txt, .pdf, .srt, .vtt, and .sbv.
Docker Containerization: Now containerized with Docker for easy deployment and monitoring.
Target Audience
Translators and Transcriptionists: Simplify your workflow with accurate transcriptions and translations.
Developers: Integrate Txtify into your projects or contribute to its development.
Content Creators: Easily generate transcripts and subtitles for your media to enhance accessibility.
Researchers: Efficiently process large datasets of audio or video files for analysis.
Comparison
Txtify vs. Other Transcription Services
High-Accuracy Transcriptions: Utilizes Whisper for state-of-the-art transcription accuracy.
Open-Source and Self-Hostable: Unlike many services that require subscriptions or have limitations, Txtify is FREE to use and modify.
Full Control Over Data: Host it yourself to ensure privacy and security of your data.
Easy Deployment with Docker: Deploy easily on any platform without dependency headaches.
Feedback Welcome
Hope you find Txtify useful! I'd love to
/r/Python
https://redd.it/1lebqvx
Hey everyone,
I wanted to share Txtify, a project I've been working on. It's a free, open-source web application that transcribes and translates audio and video using AI models.
GitHub Repository: https://github.com/lkmeta/txtify
Online Demo: Try the online simulation demo at Txtify Website.
What My Project Does
Effortless Transcription and Translation: Converts audio and video files into text using advanced AI models like Whisper from Hugging Face.
Multi-Language Support: Transcribe and translate in over 30 languages.
Multiple Output Formats: Export results in formats such as .txt, .pdf, .srt, .vtt, and .sbv.
Docker Containerization: Now containerized with Docker for easy deployment and monitoring.
Target Audience
Translators and Transcriptionists: Simplify your workflow with accurate transcriptions and translations.
Developers: Integrate Txtify into your projects or contribute to its development.
Content Creators: Easily generate transcripts and subtitles for your media to enhance accessibility.
Researchers: Efficiently process large datasets of audio or video files for analysis.
Comparison
Txtify vs. Other Transcription Services
High-Accuracy Transcriptions: Utilizes Whisper for state-of-the-art transcription accuracy.
Open-Source and Self-Hostable: Unlike many services that require subscriptions or have limitations, Txtify is FREE to use and modify.
Full Control Over Data: Host it yourself to ensure privacy and security of your data.
Easy Deployment with Docker: Deploy easily on any platform without dependency headaches.
Feedback Welcome
Hope you find Txtify useful! I'd love to
/r/Python
https://redd.it/1lebqvx
GitHub
GitHub - lkmeta/txtify: Web application that converts audio and video to text using AI, supporting various formats and self-hosting.
Web application that converts audio and video to text using AI, supporting various formats and self-hosting. - lkmeta/txtify
Datastar
We now also have https://data-star.dev/ a Alpine + HTMX in one.
https://www.youtube.com/watch?v=u4\_rNG--QMc
/r/django
https://redd.it/1lel9m0
We now also have https://data-star.dev/ a Alpine + HTMX in one.
https://www.youtube.com/watch?v=u4\_rNG--QMc
/r/django
https://redd.it/1lel9m0
Datastar
The hypermedia framework.
Fabulor: An automated story teller for language learning
https://github.com/biagiodistefano/fabulor
/r/django
https://redd.it/1lehjaw
https://github.com/biagiodistefano/fabulor
/r/django
https://redd.it/1lehjaw
GitHub
GitHub - biagiodistefano/fabulor: An automated story teller
An automated story teller. Contribute to biagiodistefano/fabulor development by creating an account on GitHub.
opentemplate - FOSS Python template focused on developer experience, security and SOTA tooling
## What the project does?
opentemplate (https://github.com/open-nudge/opentemplate) is an easy to use, yet comprehensive Python template (single click and single command is more or less all that is needed, use as a GitHub template).
Some features (see the repo for more):
- Truly open source: no tokens, no fees, no premium plans
- Easy: clone templated repo, run pdm setup
- SOTA: best checkers for Python, YAML, Markdown, prose and more
- Secure: SLSA Level 3, SBOMs, attestations and more
- Consistent: all pipelines defined by pyproject.toml
## Target audience
Anyone creating Python projects, tested intensively (including pipelines), especially for a template repository, initial release, but likely mature enough for production
## Comparison
Detailed section provided in the docs (here: https://open-nudge.github.io/opentemplate/latest/template/about/comparison/), but briefly:
- Python-first
- Focused mainly on developer experience
- GitHub only (no external platforms necessary)
- No paid tiers, fully free (some security features are blocked for private repositories, but that is on the GitHub's side and probably for a longer post)
## Final thoughts
Happy to hear feedback and if you find it useful/interesting feel free to share/star, thank you in advance.
PS. Might be slow to respond due to poor internet connection today :(
/r/Python
https://redd.it/1lelh8a
## What the project does?
opentemplate (https://github.com/open-nudge/opentemplate) is an easy to use, yet comprehensive Python template (single click and single command is more or less all that is needed, use as a GitHub template).
Some features (see the repo for more):
- Truly open source: no tokens, no fees, no premium plans
- Easy: clone templated repo, run pdm setup
- SOTA: best checkers for Python, YAML, Markdown, prose and more
- Secure: SLSA Level 3, SBOMs, attestations and more
- Consistent: all pipelines defined by pyproject.toml
## Target audience
Anyone creating Python projects, tested intensively (including pipelines), especially for a template repository, initial release, but likely mature enough for production
## Comparison
Detailed section provided in the docs (here: https://open-nudge.github.io/opentemplate/latest/template/about/comparison/), but briefly:
- Python-first
- Focused mainly on developer experience
- GitHub only (no external platforms necessary)
- No paid tiers, fully free (some security features are blocked for private repositories, but that is on the GitHub's side and probably for a longer post)
## Final thoughts
Happy to hear feedback and if you find it useful/interesting feel free to share/star, thank you in advance.
PS. Might be slow to respond due to poor internet connection today :(
/r/Python
https://redd.it/1lelh8a
GitHub
GitHub - open-nudge/opentemplate: All-in-one Python template. One click. Everything included.
All-in-one Python template. One click. Everything included. - open-nudge/opentemplate
Best YouTube Project-Based Tutorials for Django + DRF + React Full-Stack Apps?
Hey everyone,
I'm currently learning Django and really enjoying it. Now I want to level up by learning Django REST Framework (DRF) and how to connect a Django backend with a React frontend.
I learn best by doing, so I'm looking for solid project-based tutorials on YouTube that walk through building a full-stack app using Django + DRF on the backend and React on the frontend.
If you’ve come across any great resources or playlists that helped you, I’d love to hear about them. Thanks in advance!
/r/djangolearning
https://redd.it/1legcqf
Hey everyone,
I'm currently learning Django and really enjoying it. Now I want to level up by learning Django REST Framework (DRF) and how to connect a Django backend with a React frontend.
I learn best by doing, so I'm looking for solid project-based tutorials on YouTube that walk through building a full-stack app using Django + DRF on the backend and React on the frontend.
If you’ve come across any great resources or playlists that helped you, I’d love to hear about them. Thanks in advance!
/r/djangolearning
https://redd.it/1legcqf
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Modular apps with Django
Hello all.
I’ve been working for a while with Ruby and Rails.
I will likely work as the only developer on a new project. Since there are few Rubyists were I am, I’m considering Python with Django.
So far, I’ve never really used Django, I read the docs when Django was in version 1.8.
It’s important for me to have a modular architecture with a structure like this:
- module/controllers
- module/templates
- module/models
Possibility the module part could have subdirectories.
I tend to put validation logic in form classes and will consider putting custom SQL queries outside of the model in a queries subdirectory.
When I work on an app, TDD is a requirement, is there an equivalent to Ruby’s RSpec and it’s Selenium counterpart Capybara?
If anyone has good examples of a well structured codebase that is being open source… it would be a welcome contribution.
/r/django
https://redd.it/1leat30
Hello all.
I’ve been working for a while with Ruby and Rails.
I will likely work as the only developer on a new project. Since there are few Rubyists were I am, I’m considering Python with Django.
So far, I’ve never really used Django, I read the docs when Django was in version 1.8.
It’s important for me to have a modular architecture with a structure like this:
- module/controllers
- module/templates
- module/models
Possibility the module part could have subdirectories.
I tend to put validation logic in form classes and will consider putting custom SQL queries outside of the model in a queries subdirectory.
When I work on an app, TDD is a requirement, is there an equivalent to Ruby’s RSpec and it’s Selenium counterpart Capybara?
If anyone has good examples of a well structured codebase that is being open source… it would be a welcome contribution.
/r/django
https://redd.it/1leat30
Reddit
From the django community on Reddit
Explore this post and more from the django community
Can you suggest me good django books?
I like reading documentation but i am on work most of the time, it s not good for me. I read last time django for apis, it was good. I am looking good books so i can downland pdf epub my phone so i can study in work.
/r/django
https://redd.it/1lf5h4t
I like reading documentation but i am on work most of the time, it s not good for me. I read last time django for apis, it was good. I am looking good books so i can downland pdf epub my phone so i can study in work.
/r/django
https://redd.it/1lf5h4t
Reddit
From the django community on Reddit
Explore this post and more from the django community
D Time Series Forecasting with Less Data ?
Hey everyone, I am trying to do a time series sales forecasting of ice-cream sales but I have very less data only of around few months... So in order to get best results out of it, What might be the best approach for time series forecasting ? I've tried several approach like ARMA, SARIMA and so on but the results I got are pretty bad ...as I am new to time series. Can anyone experienced in this give suggestions ? Thank you 🙏
/r/MachineLearning
https://redd.it/1lf72cl
Hey everyone, I am trying to do a time series sales forecasting of ice-cream sales but I have very less data only of around few months... So in order to get best results out of it, What might be the best approach for time series forecasting ? I've tried several approach like ARMA, SARIMA and so on but the results I got are pretty bad ...as I am new to time series. Can anyone experienced in this give suggestions ? Thank you 🙏
/r/MachineLearning
https://redd.it/1lf72cl
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Django + Metronic Tailwind Integration Guide
Hi,
Just dropped a guide for integrating Keenthemes Metronic v9 Tailwind templates with Django.
Sidebar layout + Header layout with full implementations.
The guide: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/django
Get the code: https://github.com/keenthemes/metronic-tailwind-html-integration
Also working on Flask, Symfony, and Laravel versions. Let me know if there is a specific framework integration you'd love to see next.
/r/django
https://redd.it/1lf4c16
Hi,
Just dropped a guide for integrating Keenthemes Metronic v9 Tailwind templates with Django.
Sidebar layout + Header layout with full implementations.
The guide: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/django
Get the code: https://github.com/keenthemes/metronic-tailwind-html-integration
Also working on Flask, Symfony, and Laravel versions. Let me know if there is a specific framework integration you'd love to see next.
/r/django
https://redd.it/1lf4c16
@keenthemes
Metronic - Tailwind CSS Django
Integrate Django with the Tailwind CSS based toolkit for developing robust Python web applications with enterprise-grade features.
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/1lewl21
# 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/1lewl21
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Design Patterns You Should Unlearn in Python-Part1
Blog Post, no paywall:
Design Patterns You Should Unlearn in Python-Part1
When I first learned Python, I thought mastering design patterns was the key to writing “professional” code.
So I did the approach many others do: searched “design patterns in Python” and followed every Gang of Four tutorial I could find. Singleton? Got it. Builder? Sure. I mimicked all the class diagrams, stacked up abstractions, and felt like I was writing serious code.
Spoiler: I wasn’t.
The truth is, many of these patterns were invented to patch over limitations in languages like Java and C++. Python simply doesn’t have those problems — and trying to force these patterns into Python leads to overengineered, harder-to-read code.
I wrote this post because I kept seeing tutorial after tutorial teaching people the way to “implement design patterns in Python” — and getting it completely wrong. These guides don’t just miss the point — they often actively encourage bad practices that make Python code worse, not better.
This post is Part 1 of a series on design patterns you should unlearn as a Python developer. We’re starting with Singleton and Builder — two patterns that are especially misused.
And no, I won’t just tell you “use a module” or “use default arguments”
/r/Python
https://redd.it/1lfcmky
Blog Post, no paywall:
Design Patterns You Should Unlearn in Python-Part1
When I first learned Python, I thought mastering design patterns was the key to writing “professional” code.
So I did the approach many others do: searched “design patterns in Python” and followed every Gang of Four tutorial I could find. Singleton? Got it. Builder? Sure. I mimicked all the class diagrams, stacked up abstractions, and felt like I was writing serious code.
Spoiler: I wasn’t.
The truth is, many of these patterns were invented to patch over limitations in languages like Java and C++. Python simply doesn’t have those problems — and trying to force these patterns into Python leads to overengineered, harder-to-read code.
I wrote this post because I kept seeing tutorial after tutorial teaching people the way to “implement design patterns in Python” — and getting it completely wrong. These guides don’t just miss the point — they often actively encourage bad practices that make Python code worse, not better.
This post is Part 1 of a series on design patterns you should unlearn as a Python developer. We’re starting with Singleton and Builder — two patterns that are especially misused.
And no, I won’t just tell you “use a module” or “use default arguments”
/r/Python
https://redd.it/1lfcmky
www.lihil.cc
Design Patterns You Should Unlearn in Python-Part1 | Lihil
image-1.jpg
What Python GUI Lib do you like the most?
Do you like...
Tkinter
CustomTkinter
Kivy
Dear PyGUI
PySide/PyQT6
Toga
Edifice
WinUp (Probably haven't heard of it but check it out it's really cool find it **Here**)
Please explain why and which feature you like and dislike!
/r/Python
https://redd.it/1lffudq
Do you like...
Tkinter
CustomTkinter
Kivy
Dear PyGUI
PySide/PyQT6
Toga
Edifice
WinUp (Probably haven't heard of it but check it out it's really cool find it **Here**)
Please explain why and which feature you like and dislike!
/r/Python
https://redd.it/1lffudq
GitHub
GitHub - mebaadwaheed/winup: The repo for the WinUp Library Project.
The repo for the WinUp Library Project. Contribute to mebaadwaheed/winup development by creating an account on GitHub.
Flask + Metronic Tailwind Integration Guide
Hi,
I have created a guide for integrating Keenthemes Metronic v9 Tailwind templates with Flask.
With working code examples, a complete project structure you can use.
Check it out: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/flask
Get the code: https://github.com/keenthemes/metronic-tailwind-html-integration
Also working on Django, Symfony, and Laravel versions. Let me know if there is a specific framework integration you'd love to see next.
/r/flask
https://redd.it/1lf47ln
Hi,
I have created a guide for integrating Keenthemes Metronic v9 Tailwind templates with Flask.
With working code examples, a complete project structure you can use.
Check it out: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/flask
Get the code: https://github.com/keenthemes/metronic-tailwind-html-integration
Also working on Django, Symfony, and Laravel versions. Let me know if there is a specific framework integration you'd love to see next.
/r/flask
https://redd.it/1lf47ln
@keenthemes
Metronic - Tailwind CSS Flask
Integrate Flask with the Tailwind CSS based toolkit for efficient backend development.