This media is not supported in your browser
VIEW IN TELEGRAM
[P] I built Reddit Wrapped – let an LLM analyze and roast your Reddit profile
/r/MachineLearning
https://redd.it/1j7c45g
/r/MachineLearning
https://redd.it/1j7c45g
R How to start writting papers as an independent researcher
Hey Guys, so I have a master's in AI and work in the AI field, for a while now I wanted to try to write papers to send to conferences, but I dont know how to start or how to do it. I also feel kinda overwhelmed since I feel that if I write a paper by myself, a lone author who has never had anything written before and is backed by no organization, even if I write something interesting, people wont take it seriously. I also changed continents, so its kinda difficult to try to make connections with my original university, so I was wondering if there are any groups of independent researchers where I could connect with. I would welcome any kind of advice really, since most of my connections dont write papers, less in the AI field, so I dont know where to start.
/r/MachineLearning
https://redd.it/1j74rx0
Hey Guys, so I have a master's in AI and work in the AI field, for a while now I wanted to try to write papers to send to conferences, but I dont know how to start or how to do it. I also feel kinda overwhelmed since I feel that if I write a paper by myself, a lone author who has never had anything written before and is backed by no organization, even if I write something interesting, people wont take it seriously. I also changed continents, so its kinda difficult to try to make connections with my original university, so I was wondering if there are any groups of independent researchers where I could connect with. I would welcome any kind of advice really, since most of my connections dont write papers, less in the AI field, so I dont know where to start.
/r/MachineLearning
https://redd.it/1j74rx0
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
[Project] mkdocs-typer2: Automatic documentation for Typer CLI applications
Hello Python community! I wanted to share a project I've been working on that might be useful for developers building command-line applications with Typer.
# What My Project Does
`mkdocs-typer2` is a MkDocs plugin that automatically generates documentation for Typer CLI applications. It works by:
1. Leveraging Typer's built-in documentation generation system
2. Processing the output and seamlessly integrating it into your MkDocs site
3. Offering an optional "pretty" mode that formats CLI arguments and options in elegant tables instead of lists
4. Supporting both global configuration and per-documentation block customization
Installation is straightforward:
pip install mkdocs-typer2
Usage is simple - just add a directive to your Markdown files:
::: mkdocs-typer2
:module: my_module.cli
:name: my-cli
:pretty: true
# Target Audience
This plugin is meant for:
* Python developers building CLI applications with Typer
* Teams who want to maintain high-quality documentation without extra effort
* Open source project maintainers looking to improve their user documentation
* Anyone who values clean, consistent, and professional-looking documentation
This is a production-ready tool designed to solve a real problem in documentation workflows. It's particularly useful in projects where CLI documentation needs to
/r/Python
https://redd.it/1j7d34e
Hello Python community! I wanted to share a project I've been working on that might be useful for developers building command-line applications with Typer.
# What My Project Does
`mkdocs-typer2` is a MkDocs plugin that automatically generates documentation for Typer CLI applications. It works by:
1. Leveraging Typer's built-in documentation generation system
2. Processing the output and seamlessly integrating it into your MkDocs site
3. Offering an optional "pretty" mode that formats CLI arguments and options in elegant tables instead of lists
4. Supporting both global configuration and per-documentation block customization
Installation is straightforward:
pip install mkdocs-typer2
Usage is simple - just add a directive to your Markdown files:
::: mkdocs-typer2
:module: my_module.cli
:name: my-cli
:pretty: true
# Target Audience
This plugin is meant for:
* Python developers building CLI applications with Typer
* Teams who want to maintain high-quality documentation without extra effort
* Open source project maintainers looking to improve their user documentation
* Anyone who values clean, consistent, and professional-looking documentation
This is a production-ready tool designed to solve a real problem in documentation workflows. It's particularly useful in projects where CLI documentation needs to
/r/Python
https://redd.it/1j7d34e
Reddit
From the Python community on Reddit: [Project] mkdocs-typer2: Automatic documentation for Typer CLI applications
Explore this post and more from the Python community
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/1j7lij0
# 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/1j7lij0
YouTube
Build & Integrate your own custom chatbot to a website (Python & JavaScript)
In this fun project you learn how to build a custom chatbot in Python and then integrate this to a website using Flask and JavaScript.
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
I have a angular + Django backend . When I am click on a button, it calls an api which starts execution of a process via python. It takes almost 2mins to complete the process. Now I want that suppose when a user closes the tab, the api call should be cancelled. How to achieve that?
/r/djangolearning
https://redd.it/1j7acrn
/r/djangolearning
https://redd.it/1j7acrn
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
The current landscape of UI components and design systems for Django applications
When I start developing a new web application, it's almost always a Django project. ORM, migrations, templates, etc. It's that familiar all-in-one package we've all come to love.
But the one area that keeps bugging me is how to add componentization of the UI and fill in a design system to the components. I don't want to always start from the scratch when starting a new project but I haven't solved this issue for me.
I know I could just use template snippets for reusability but it feels off and I've seen myself how quickly the DX of going through template after another falls off.
So what's the current rave for adding components to a Django codebase? Web components? django-components? Daisy UI? django-cotton? And how about adding a design system in? Tailwind? Bootstrap 5?
Note that I don't want a full-fledged SPA with a UI framework like React or Svelte on the client-side. The more SSR the merrier.
Would love to hear your experiences and suggestions.
/r/django
https://redd.it/1j7jtmr
When I start developing a new web application, it's almost always a Django project. ORM, migrations, templates, etc. It's that familiar all-in-one package we've all come to love.
But the one area that keeps bugging me is how to add componentization of the UI and fill in a design system to the components. I don't want to always start from the scratch when starting a new project but I haven't solved this issue for me.
I know I could just use template snippets for reusability but it feels off and I've seen myself how quickly the DX of going through template after another falls off.
So what's the current rave for adding components to a Django codebase? Web components? django-components? Daisy UI? django-cotton? And how about adding a design system in? Tailwind? Bootstrap 5?
Note that I don't want a full-fledged SPA with a UI framework like React or Svelte on the client-side. The more SSR the merrier.
Would love to hear your experiences and suggestions.
/r/django
https://redd.it/1j7jtmr
Reddit
From the django community on Reddit
Explore this post and more from the django community
Implemented 20 RAG Techniques in a Simpler Way
# What My Project Does
I created a comprehensive learning project in a Jupyter Notebook to implement RAG techniques such as self-RAG, fusion, and more.
# Target audience
This project is designed for students and researchers who want to gain a clear understanding of RAG techniques in a simplified manner.
# Comparison
Unlike other implementations, this project does not rely on LangChain or FAISS libraries. Instead, it uses only basic libraries to guide users understand the underlying processes. Any recommendations for improvement are welcome.
# GitHub
Code, documentation, and example can all be found on GitHub:
https://github.com/FareedKhan-dev/all-rag-techniques
/r/Python
https://redd.it/1j7rl6o
# What My Project Does
I created a comprehensive learning project in a Jupyter Notebook to implement RAG techniques such as self-RAG, fusion, and more.
# Target audience
This project is designed for students and researchers who want to gain a clear understanding of RAG techniques in a simplified manner.
# Comparison
Unlike other implementations, this project does not rely on LangChain or FAISS libraries. Instead, it uses only basic libraries to guide users understand the underlying processes. Any recommendations for improvement are welcome.
# GitHub
Code, documentation, and example can all be found on GitHub:
https://github.com/FareedKhan-dev/all-rag-techniques
/r/Python
https://redd.it/1j7rl6o
This is just the beginning and I'm crumbling with Django learning curve
I cannot thank everyone enough for motivating me to learn Django regardless of my age in the last post. And I'm trying to work on it. But, yet I find all this code overwhelming. I have been just following UDEMY tutorial. Sometimes the code work, sometimes does not. And I had to look up over the internet to fix it . And that searching takes like 30 minutes for each bug I encounter. Prolly, it is because I have no partner to learn with. Nevertheless, just look at the code I just posted. I was understanding until Employee.objects.all() from models was called and displayed in template. But, now with this foreign key, select_related and even with line 30,37 where employees are called with array position. I cannot comprehend it much. Should I just go through this again and again and practice or is there any easy way out. or any books to help me. I guess tutorial is not the way. Please please please help me overcome this learning curve. I do not wanna feel overwhelmed. I have already finished 30 hours of video and practice along with. And I can only give 3 hours everyday for 1 year
/r/django
https://redd.it/1j7e35h
I cannot thank everyone enough for motivating me to learn Django regardless of my age in the last post. And I'm trying to work on it. But, yet I find all this code overwhelming. I have been just following UDEMY tutorial. Sometimes the code work, sometimes does not. And I had to look up over the internet to fix it . And that searching takes like 30 minutes for each bug I encounter. Prolly, it is because I have no partner to learn with. Nevertheless, just look at the code I just posted. I was understanding until Employee.objects.all() from models was called and displayed in template. But, now with this foreign key, select_related and even with line 30,37 where employees are called with array position. I cannot comprehend it much. Should I just go through this again and again and practice or is there any easy way out. or any books to help me. I guess tutorial is not the way. Please please please help me overcome this learning curve. I do not wanna feel overwhelmed. I have already finished 30 hours of video and practice along with. And I can only give 3 hours everyday for 1 year
/r/django
https://redd.it/1j7e35h
Reddit
From the django community on Reddit
Explore this post and more from the django community
Performance gains of the Python 3.14 tail-call interpreter were largely due to benchmark errors
I was really surprised and confused by last month's claims of a 15% speedup for the new interpreter. It turned out it was an error in the benchmark setup, caused by a bug in LLVM 19.
See https://blog.nelhage.com/post/cpython-tail-call/ and the correction in https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-tail-call
A 5% speedup is still nice though!
/r/Python
https://redd.it/1j7usy1
I was really surprised and confused by last month's claims of a 15% speedup for the new interpreter. It turned out it was an error in the benchmark setup, caused by a bug in LLVM 19.
See https://blog.nelhage.com/post/cpython-tail-call/ and the correction in https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-tail-call
A 5% speedup is still nice though!
/r/Python
https://redd.it/1j7usy1
Reddit
From the Python community on Reddit: A new type of interpreter has been added to Python 3.14 with much better performance
Explore this post and more from the Python community
I built Lightweight & Flexible AI Agent Manager
# What My Project Does
I built a simple, lightweight tool that allows developers to create and manage AI agents efficiently. This package provides:
* **Agent Definition**: Assign roles and instructions to agents.
* **Model Flexibility**: Easily switch between popular LLMs.
* **Tool Integration**: Equip agents with tools for specific tasks.
* **Multi-Agent Orchestration**: Seamlessly manage interactions between agents.
# Target Audience
This tool is designed for developers working with **Django, Flask, FastAPI**, and other Python frameworks who need:
* A **lightweight** and **flexible** alternative to Langchain/Langraph.
* Easy integration into **views, background tasks**, and other workflows.
* A **simpler learning curve** without excessive abstraction.
# Comparison with Existing Tools
Unlike **Langchain, Langraph, and Pydantic**, which have a **steep learning curve** and heavy abstractions, this package is:
✅ **Lightweight & Minimal** – No unnecessary overhead.
✅ **Flexible** – Use it wherever you want.
✅ **Supports Multiple LLMs** – Easily switch between:
* OpenAI
* Grok
* DeepSeek
* Anthropic
* Llama
* GenAI (Gemini)
# GitHub
Check it out and show some love by **giving stars ⭐ and feedback**!
🔗 [**https://github.com/sandeshnaroju/agents\_manager**](https://github.com/sandeshnaroju/agents_manager)
/r/Python
https://redd.it/1j7td2q
# What My Project Does
I built a simple, lightweight tool that allows developers to create and manage AI agents efficiently. This package provides:
* **Agent Definition**: Assign roles and instructions to agents.
* **Model Flexibility**: Easily switch between popular LLMs.
* **Tool Integration**: Equip agents with tools for specific tasks.
* **Multi-Agent Orchestration**: Seamlessly manage interactions between agents.
# Target Audience
This tool is designed for developers working with **Django, Flask, FastAPI**, and other Python frameworks who need:
* A **lightweight** and **flexible** alternative to Langchain/Langraph.
* Easy integration into **views, background tasks**, and other workflows.
* A **simpler learning curve** without excessive abstraction.
# Comparison with Existing Tools
Unlike **Langchain, Langraph, and Pydantic**, which have a **steep learning curve** and heavy abstractions, this package is:
✅ **Lightweight & Minimal** – No unnecessary overhead.
✅ **Flexible** – Use it wherever you want.
✅ **Supports Multiple LLMs** – Easily switch between:
* OpenAI
* Grok
* DeepSeek
* Anthropic
* Llama
* GenAI (Gemini)
# GitHub
Check it out and show some love by **giving stars ⭐ and feedback**!
🔗 [**https://github.com/sandeshnaroju/agents\_manager**](https://github.com/sandeshnaroju/agents_manager)
/r/Python
https://redd.it/1j7td2q
Redis as cache.
At work, we needed to implement Redis for a caching solution. After some searching, btw clickhouse has great website for searching python packages here.
I found a library that that made working with redis a breeze Redis-Dict.
Finished implementing our entire caching feature the same day I found this library (didn't push until the end of the week though...).
/r/Python
https://redd.it/1j7zgsd
At work, we needed to implement Redis for a caching solution. After some searching, btw clickhouse has great website for searching python packages here.
I found a library that that made working with redis a breeze Redis-Dict.
from redis_dict import RedisDict
from datetime import timedelta
cache = RedisDict(expire=timedelta(minutes=60))
request = {"data": {"1": "23"}}
web_id = "123"
cache[web_id] = request["data"]
Finished implementing our entire caching feature the same day I found this library (didn't push until the end of the week though...).
/r/Python
https://redd.it/1j7zgsd
Clickhouse
ClickPy - Download analytics for redis-dict
Analytics for the python package redis-dict, powered by ClickHouse
I built a better Python playground with file handling and libraries
**What My Project Does**
Online Python compiler with:
* file uploads
* data viz
* Python libraries
* script scheduling
* keyboard shortcuts, dark mode, autocomplete, etc.
**Target Audience**
Python students, low-coders
**Comparison**
No sign up or usage limits (unlike Replit, PythonAnywhere). Has libraries, file uploads and scheduling, which most online Python environments don't have.
Uses the incredible Pyodide to execute Python using WebAssembly: [https://github.com/pyodide/pyodide](https://github.com/pyodide/pyodide)
**Try it here:** [https://cliprun.com/online-python-compiler-with-file-upload](https://cliprun.com/online-python-compiler-with-file-upload)
/r/Python
https://redd.it/1j82tnw
**What My Project Does**
Online Python compiler with:
* file uploads
* data viz
* Python libraries
* script scheduling
* keyboard shortcuts, dark mode, autocomplete, etc.
**Target Audience**
Python students, low-coders
**Comparison**
No sign up or usage limits (unlike Replit, PythonAnywhere). Has libraries, file uploads and scheduling, which most online Python environments don't have.
Uses the incredible Pyodide to execute Python using WebAssembly: [https://github.com/pyodide/pyodide](https://github.com/pyodide/pyodide)
**Try it here:** [https://cliprun.com/online-python-compiler-with-file-upload](https://cliprun.com/online-python-compiler-with-file-upload)
/r/Python
https://redd.it/1j82tnw
GitHub
GitHub - pyodide/pyodide: Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
Pyodide is a Python distribution for the browser and Node.js based on WebAssembly - pyodide/pyodide
At what point is HTMx not going to suffice for large ERP?
I'm starting a new project that will be large with lots of moving parts, complex modules, and different spaces for different users. Its an ERP, so you can imagine the types of data and functionality I will be building.
For past large projects, I have always used Django DRF as an API backend and a VueJS frontend to consume the API. This has worked well in the past, providing a rich user interface and experience. However, it always comes at the cost of overall project complexity given that there are two separate code bases to manage.
So, instead of DRF + VueJS I'm considering Django templates + HTMx. I've worked with HTMx in the past, but not extensively. I've also always heard the phrase "unless you're building a spreadsheet type app, HTMx will be fine". OK - but, I might need some of that level of complexity given that I'm building an ERP. I just don't want to get into Django + HTMx and realize 6 months down the road, HTMx isn't going to cut it.
My question is - have any of you built really large projects with complex UI/UX and only used the Django templates + HTMx? Can
/r/django
https://redd.it/1j7zd1c
I'm starting a new project that will be large with lots of moving parts, complex modules, and different spaces for different users. Its an ERP, so you can imagine the types of data and functionality I will be building.
For past large projects, I have always used Django DRF as an API backend and a VueJS frontend to consume the API. This has worked well in the past, providing a rich user interface and experience. However, it always comes at the cost of overall project complexity given that there are two separate code bases to manage.
So, instead of DRF + VueJS I'm considering Django templates + HTMx. I've worked with HTMx in the past, but not extensively. I've also always heard the phrase "unless you're building a spreadsheet type app, HTMx will be fine". OK - but, I might need some of that level of complexity given that I'm building an ERP. I just don't want to get into Django + HTMx and realize 6 months down the road, HTMx isn't going to cut it.
My question is - have any of you built really large projects with complex UI/UX and only used the Django templates + HTMx? Can
/r/django
https://redd.it/1j7zd1c
Reddit
From the django community on Reddit
Explore this post and more from the django community
blob-path: pathlib-like cloud agnostic object storage library
# What My Project Does
Having worked with applications which run on multiple clouds and on-premise systems, I’ve been developing a library which abstracts away some common functionalities, while being close to the pathlib interface
tutorial notebook
Example snippet
Features:
- A pathlib-like interface for handling cloud object storage paths, I just love that interface
- Built-in serialisation and deserialisation: this, in my experience, is something people have trouble with when they begin abstracting away cloud storages. Generally because they don’t realise it after some time and it keeps getting deprioritised. Users instead rely on stuff like using the same bucket across the application
- Having a pathlib interface where all the functionality is packaged in the path itself (instead of writing “clients” for each cloud backend make this trivial)
-
/r/Python
https://redd.it/1j85fui
# What My Project Does
Having worked with applications which run on multiple clouds and on-premise systems, I’ve been developing a library which abstracts away some common functionalities, while being close to the pathlib interface
tutorial notebook
Example snippet
from blob_path.backends.s3 import S3BlobPath
from pathlib import PurePath
bucket_name = "my-bucket"
object_key = PurePath(
"hello_world.txt"
)
region = "us-east-1"
blob_path = S3BlobPath(
bucket_name,
region,
object_key,
)
# check if the file exists
print(blob_path.exists())
# read the file
with blob_path.open("rb") as f:
# a file handle is returned here, just like `open`
print(f.read())
destination = AzureBlobPath(
"my-blob-store",
"testcontainer",
PurePath("copied_from") / "s3.txt"
)
blob_path.cp(destination)
Features:
- A pathlib-like interface for handling cloud object storage paths, I just love that interface
- Built-in serialisation and deserialisation: this, in my experience, is something people have trouble with when they begin abstracting away cloud storages. Generally because they don’t realise it after some time and it keeps getting deprioritised. Users instead rely on stuff like using the same bucket across the application
- Having a pathlib interface where all the functionality is packaged in the path itself (instead of writing “clients” for each cloud backend make this trivial)
-
/r/Python
https://redd.it/1j85fui
GitHub
blob-path/docs/notebooks/00_usage.ipynb at main · narang99/blob-path
Contribute to narang99/blob-path development by creating an account on GitHub.
Should I Use CDNs for Bootstrap & HTMX in My Django App?
Hey everyone,
I'm currently building a Django app and considering using CDNs to serve Bootstrap and HTMX. A friend of mine warned me against using CDNs in production, but neither of us have much experience, so I wanted to get insights from more experienced developers.
Are there any security, performance, or reliability concerns I should be aware of when relying on CDNs for these libraries? Would it be better to self-host them instead? If so, what’s the best approach for managing updates efficiently?
I’d really appreciate any advice or best practices you can share. Thanks in advance!
/r/django
https://redd.it/1j83ywp
Hey everyone,
I'm currently building a Django app and considering using CDNs to serve Bootstrap and HTMX. A friend of mine warned me against using CDNs in production, but neither of us have much experience, so I wanted to get insights from more experienced developers.
Are there any security, performance, or reliability concerns I should be aware of when relying on CDNs for these libraries? Would it be better to self-host them instead? If so, what’s the best approach for managing updates efficiently?
I’d really appreciate any advice or best practices you can share. Thanks in advance!
/r/django
https://redd.it/1j83ywp
Reddit
From the django community on Reddit
Explore this post and more from the django community
What is your go-to way of structuring Django projects?
Been using Django for a bit now and I feel like my structure is lacking. Sometimes I just put all models in the main app, sometimes I split them across apps and that's a mess.
Wondering how to test out for the sweet spot.
/r/djangolearning
https://redd.it/1j7u3bc
Been using Django for a bit now and I feel like my structure is lacking. Sometimes I just put all models in the main app, sometimes I split them across apps and that's a mess.
Wondering how to test out for the sweet spot.
/r/djangolearning
https://redd.it/1j7u3bc
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning 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/1j8dhis
# 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/1j8dhis
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
Keeping Azure Blob synchronised with Django Database
This is the Image Model for a Gallery app. I realised that the default behaviour of django-storages is that it uploads files to AzureBlob but doesn't delete the files when the database entry is deleted. Not sure if this is the way to do it? It seems like it should be really common but I've had to dig up the AzureBlob SDK manually to do it. I also have a thumbnail function for faster loading (will change some parameters later)
class Image(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=255)
description = models.TextField()
image_file = models.ImageField(upload_to='images/')
thumbnail_file = models.URLField(null=True, blank=True) # Store Azure URL instead of ImageField
uploaded_at = models.DateTimeField(auto_now_add=True)
def save(self, *args, **kwargs):
/r/django
https://redd.it/1j8i62i
This is the Image Model for a Gallery app. I realised that the default behaviour of django-storages is that it uploads files to AzureBlob but doesn't delete the files when the database entry is deleted. Not sure if this is the way to do it? It seems like it should be really common but I've had to dig up the AzureBlob SDK manually to do it. I also have a thumbnail function for faster loading (will change some parameters later)
class Image(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=255)
description = models.TextField()
image_file = models.ImageField(upload_to='images/')
thumbnail_file = models.URLField(null=True, blank=True) # Store Azure URL instead of ImageField
uploaded_at = models.DateTimeField(auto_now_add=True)
def save(self, *args, **kwargs):
/r/django
https://redd.it/1j8i62i
Reddit
From the django community on Reddit
Explore this post and more from the django community
Launched a hosting platform optimized for Django deployment
Hey, I'm Isaac. I've been deploying Django apps for years, and one thing that always annoyed me is how expensive it is—especially if you have multiple small projects.
The problem:
1. Paying for idle time – Most hosting options charge you 24/7, even though your app is idle most of the time.
2. Multiple apps, multiple bills – Want to deploy more than one Django service? Get ready to pay for each, even if they get minimal traffic.
I built Leapcell to fix this. It lets you deploy Django apps instantly, get a URL, and only pay for actual usage. No more idle costs.
If you’ve struggled with the cost of Django hosting, I’d love to hear your thoughts!
Try Leapcell: **https://leapcell.io/**
/r/django
https://redd.it/1j8mftd
Hey, I'm Isaac. I've been deploying Django apps for years, and one thing that always annoyed me is how expensive it is—especially if you have multiple small projects.
The problem:
1. Paying for idle time – Most hosting options charge you 24/7, even though your app is idle most of the time.
2. Multiple apps, multiple bills – Want to deploy more than one Django service? Get ready to pay for each, even if they get minimal traffic.
I built Leapcell to fix this. It lets you deploy Django apps instantly, get a URL, and only pay for actual usage. No more idle costs.
If you’ve struggled with the cost of Django hosting, I’d love to hear your thoughts!
Try Leapcell: **https://leapcell.io/**
/r/django
https://redd.it/1j8mftd
Leapcell
Leapcell: Ship All Your Code Online.
Leapcell is a modern cloud platform and PaaS for developers, offering seamless web hosting for apps, APIs, and databases. Enjoy serverless deployment, high performance, automatic scalability, and strong security worldwide.
Your notes on Django Fundamentals
Does anyone here have an organised notes that you have written on Django Fundamentals while you learned it? And if you did could you please share it. It’ll be useful for me to refer and also update my existing notes.
/r/djangolearning
https://redd.it/1j5kmk0
Does anyone here have an organised notes that you have written on Django Fundamentals while you learned it? And if you did could you please share it. It’ll be useful for me to refer and also update my existing notes.
/r/djangolearning
https://redd.it/1j5kmk0
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community