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
Master the python logging module

As a consultant I often find interesting topics that could warrent some knowledge sharing or educational content.
To satisfy my own hunger to share knowledge and be creative I've started to create videos with the purpose of free education for junior to medior devs.

My first video is about how the python logging module works and hopes to demystify some interesting behavior.

Hope you like it!

https://youtu.be/A3FkYRN9qog?si=89rAYSbpJQm0SfzP


/r/Python
https://redd.it/1eyn4n7
deploying flask app

hey guys i made a small web app using flask. i want to buy a domain name and deploy it as a website so my friends can interact. what is a simple and easy to use hosting service? i'm talking upload and live since i'm not good with network knowledge. any suggestion will be greatly appreciated

/r/flask
https://redd.it/1eyqmvm
Open-Source SocialStarter Project

Six months ago, I started working on SocialStarter, an open-source Django project aimed at creating a flexible template for building social networks. The project includes features like posts, likes, comments, user relationships, and django-allauth for authentication. Unfortunately, due to an increasingly demanding workload, I haven’t been able to continue its development.

However, I believe in the potential of this project and the value of open-source collaboration. If you're someone just starting out and looking for a project to contribute to and learn from, I encourage you to jump in. SocialStarter offers a solid foundation, and with the right contributions, it could evolve into something significant. That’s the beauty of open-source—together, we can take a small idea and grow it into something impactful. If you’re interested, feel free to explore the GitHub repo and contribute.

/r/django
https://redd.it/1eys5bl
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/1eyykga
New Django Library: Django Action Trigger

It's been a while since I’ve shared something, but I’m excited to announce the release of a new Python library: Django Action Triggers.

This project is inspired by an older one I built a few years ago (django-email-signals). Django Action Triggers is a library that allows you to trigger actions based on database changes in your Django application.

It supports webhook integration and can send messages to brokers such as Kafka and RabbitMQ. You can easily set up actions to be triggered by specific events, all configurable through the front end.

What My Project Does

It allows you to configure triggers where a trigger is essentially watching out for some kind of database change. This is done using signals (post_save, pre_save, etc).

Alongside these triggers, you can configure some kind of action to take place. For now, this only will allow you to hit a webhook, or send a message to a message broker (RabbitMQ and Kafka supported).

Target Audience

At the moment, this is a toy project to get me comfortable write code that's supposed to be extensible again. However, would be nice if this eventually reaches production.

Comparison

From what I've seen so far, at the moment there isn't anything comparable unless you consider setting everything up

/r/django
https://redd.it/1eyyvt9
New Django Library: Django Action Triggers

It's been a while since I’ve shared something, but I’m excited to announce the release of a new Python library: Django Action Triggers.

This project is inspired by an older one I built a few years ago (django-email-signals). Django Action Triggers is a library that allows you to trigger actions based on database changes in your Django application.

It supports webhook integration and can send messages to brokers such as Kafka and RabbitMQ. You can easily set up actions to be triggered by specific events, all configurable through the front end.

What My Project Does

It allows you to configure triggers where a trigger is essentially watching out for some kind of database change. This is done using signals (post_save, pre_save, etc).

Alongside these triggers, you can configure some kind of action to take place. For now, this only will allow you to hit a webhook, or send a message to a message broker (RabbitMQ and Kafka supported).

Target Audience

At the moment, this is a toy project to get me comfortable write code that's supposed to be extensible again. However, would be nice if this eventually reaches production.

Comparison

From what I've seen so far, at the moment there isn't anything comparable unless you consider setting everything up

/r/Python
https://redd.it/1eyz2pp
Would a Django-Next.js-JWT Authentication Starter Kit be Useful?

I've been toying with the idea of putting together a Django-Next.js-JWT integration specifically designed for handling authentication. Here’s what I’m thinking: using Django Rest Framework (DRF) along with simple_jwt for the backend, complemented by a custom admin panel using Jazzmin. On the frontend, Next.js would be used purely for consuming this setup, focusing solely on authentication boilerplate.

However, I’m curious about your thoughts on this. Given the existence of NextAuth, I wonder if this effort might be redundant. Do you think there's still value in having a dedicated Django-Next.js-JWT starter kit for those who prefer a more tailored approach or need specific backend customization?

I'd love to hear what you think about this idea. Do you think it's worth the effort, or should I reconsider? Your thoughts would really help me out!

/r/django
https://redd.it/1ez5a82
opencv based ttf rendering

Hey if you were ever wondering how you can load custom fonts in opencv, you cant do that natively, but i i developed a project that helps you load custom fonts in opencv python.



What My Project Does

My project allows you to render ttf files inside opencv and place text in images

Target Audience

Anyone who is working with text and computer vision

Comparison

From what ive seen there arent many other projects out there that does this, but some of similar projects i have seen are:

- https://pypi.org/project/a-cv2-putTrueTypeText/ this project get the job done, but have really messy code and doesnt have any documentation.

Repo: https://github.com/ivanrj7j/Font

Documentation: https://github.com/ivanrj7j/Font/wiki


I am looking for feedback thank you!

/r/Python
https://redd.it/1ez8w02
Do Operating Systems Really Impact Web Development?

I've always used macOS throughout my web development journey, and I'm curious to know if the operating system you use has a significant impact on web development. Apart from personal preference, are there any major differences or benefits in using different operating systems like Windows or Linux for web development tasks?

Thanks!

/r/django
https://redd.it/1ezjhvn
Best way to manage sockets with django

Hey, what is the best way to manage sockets with Django? I tried using Daphne, but it didn’t work well for me. It was working fine for a while, but then I had trouble restarting the Daphne server, even after restoring the configuration to the last working state. I’ve had enough of Daphne. Are there any good alternatives?

/r/django
https://redd.it/1ezmm1y
Celery is making me go insane

To preface this, I am using WSL2 Ubuntu in windows 11 for my development environment. I use visual studio code for my code editor.

I wanted to integrate Celery and Redis in a project I was working on, but I keep encountering this issue. Even if the task had already completed and is successful (based on Flower monitoring), when I try to retrieve the task result or task status in my flask app using AsyncResult and .get() it just loads infinitely and shows the status as PENDING and the result as NULL.

Now, I created a new stripped down flask app just to isolate the issue. And even with just a basic Flask app setup I am still experiencing it. I have been messing around with this for more than 48 hours now and it's driving me crazy.

Here are some code snippets from the stripped down flask app:

**\_\_init\_\_.py**

import os, time
from datetime import timedelta

from flask import Flask
from dotenv import load_dotenv
from .extensions import prepare_extensions, celery_init_app

load_dotenv()
app = Flask(__name__)


/r/flask
https://redd.it/1ez7nov
Django : From Zero to Hero

/r/django
https://redd.it/1ezqdnc
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/1ezrsav
why choose django?

im in north america, why would someone choose django over say springboot/dot net which many established companies use? or node/express whihc many startups use? what does python/django offer than would make anyone pick it over these fraemworks. also Should I learn flask or django or fastapi first?

/r/django
https://redd.it/1ezun01
Hiring Remote Frontend Developer

Hi everyone, we have added a new job on our platform. If you are looking for a Remote Frontend Developer job please check the job link below.

Role - Remote Frontend Developer (Remote, Full Time)

Job Link - https://devloprr.com/jobs#283

/r/flask
https://redd.it/1ezxl8s