I love Django! I don't use any third party django extensions, am I missing out?
Hello everyone,
Django has been really good lately for the different applications I use. Beyond the code, even the philosophy of Django has helped me structured my thinking. I also started using Cookie Cutter, that stuff is awesome. I have been tempted to use certain django extensions such as Django Markdown (for supporting markdown) and Django Ledger (for accounting stuff I knew now much about).
In the end, I didn't implement neither because I found alternative solutions. I would really love hearing from the community?
1. Do you stand by any specific django extensions that you use in your projects?
2. How is your experience like as a someone who contributes to extensions?
3. What were some of your negative experiences with extensions?
/r/django
https://redd.it/1fyspu3
Hello everyone,
Django has been really good lately for the different applications I use. Beyond the code, even the philosophy of Django has helped me structured my thinking. I also started using Cookie Cutter, that stuff is awesome. I have been tempted to use certain django extensions such as Django Markdown (for supporting markdown) and Django Ledger (for accounting stuff I knew now much about).
In the end, I didn't implement neither because I found alternative solutions. I would really love hearing from the community?
1. Do you stand by any specific django extensions that you use in your projects?
2. How is your experience like as a someone who contributes to extensions?
3. What were some of your negative experiences with extensions?
/r/django
https://redd.it/1fyspu3
Reddit
From the django community on Reddit
Explore this post and more from the django community
Pylon: A Web-Based GUI Library for Desktop Applications
# 💎 What is Pylon?
Pylon is a web-based GUI library designed for desktop applications, providing a Python-powered alternative to frameworks like Electron and Tauri. It simplifies desktop app development by integrating Python features with a modern web-based interface, making it ideal for AI-driven applications.
# 🎯 Target Audience
Pylon is designed for both beginners and experienced developers who want to build desktop applications using Python. It's particularly suited for those seeking an easy-to-use, Python-centric framework to develop robust desktop apps, especially those incorporating AI functionalities.
# 🔍 Comparison with Existing Alternatives
Unlike general-purpose frameworks such as Electron and Tauri, Pylon is tailored specifically for Python developers. It offers native support for Python's ecosystem and includes optimizations for building AI-powered desktop applications, making it a great choice for developers integrating machine learning models into their apps.
# Key Features 🚀
* **Web-Based GUI**: Build UIs for desktop apps using HTML, CSS, and JavaScript.
* **System Tray Support**: Integrate system tray icons with ease.
* **Multi-Window Management**: Create and manage multiple windows seamlessly.
* **Python-JavaScript Bridge API**: Effortlessly bridge Python and JavaScript functionality.
* **Single Instance Support**: Prevent multiple instances of the app from running.
* **Comprehensive Desktop Features**: Includes monitor management, desktop capture, notifications, shortcuts, and clipboard access.
* **Clean Code Structure**: Simplified
/r/Python
https://redd.it/1fysjpn
# 💎 What is Pylon?
Pylon is a web-based GUI library designed for desktop applications, providing a Python-powered alternative to frameworks like Electron and Tauri. It simplifies desktop app development by integrating Python features with a modern web-based interface, making it ideal for AI-driven applications.
# 🎯 Target Audience
Pylon is designed for both beginners and experienced developers who want to build desktop applications using Python. It's particularly suited for those seeking an easy-to-use, Python-centric framework to develop robust desktop apps, especially those incorporating AI functionalities.
# 🔍 Comparison with Existing Alternatives
Unlike general-purpose frameworks such as Electron and Tauri, Pylon is tailored specifically for Python developers. It offers native support for Python's ecosystem and includes optimizations for building AI-powered desktop applications, making it a great choice for developers integrating machine learning models into their apps.
# Key Features 🚀
* **Web-Based GUI**: Build UIs for desktop apps using HTML, CSS, and JavaScript.
* **System Tray Support**: Integrate system tray icons with ease.
* **Multi-Window Management**: Create and manage multiple windows seamlessly.
* **Python-JavaScript Bridge API**: Effortlessly bridge Python and JavaScript functionality.
* **Single Instance Support**: Prevent multiple instances of the app from running.
* **Comprehensive Desktop Features**: Includes monitor management, desktop capture, notifications, shortcuts, and clipboard access.
* **Clean Code Structure**: Simplified
/r/Python
https://redd.it/1fysjpn
Reddit
From the Python community on Reddit: Pylon: A Web-Based GUI Library for Desktop Applications
Explore this post and more from the Python community
Niquests v3.9.0 Released
We are proud to announce our latest advancement for Niquests. Since last time we published in
this community, a lot of things happened.
We landed for you:
- Post-Quantum Security for QUIC
- QUIC v2
- Integrated WebSocket Support
- HTTP Trailers
- Early Responses like "103 Early Hints"
- Happy EyeBalls
The project reached 800+ stars with half a million downloads since the beginning.
We are grateful to Microsoft and involved parties for funding our work through the Microsoft FOSS Fund program.
What My Project Does
Niquests is a HTTP Client. It aims to continue and expand the well established Requests library.
For many years now, Requests has been frozen. Being left in a vegetative state and not evolving,
this blocked millions of developers from using more advanced features.
Target Audience
It is a production ready solution. So everyone is potentially concerned.
Comparison
Niquests is the only HTTP client capable of serving HTTP/1.1, HTTP/2, and HTTP/3 automatically.
The project went deep into the protocols (early responses, trailer headers, etc...) and all related
networking essentials (like DNS-over-HTTPS, advanced performance metering, etc..)
You may find the project at: https://github.com/jawah/niquests
/r/Python
https://redd.it/1fyv8uh
We are proud to announce our latest advancement for Niquests. Since last time we published in
this community, a lot of things happened.
We landed for you:
- Post-Quantum Security for QUIC
- QUIC v2
- Integrated WebSocket Support
- HTTP Trailers
- Early Responses like "103 Early Hints"
- Happy EyeBalls
The project reached 800+ stars with half a million downloads since the beginning.
We are grateful to Microsoft and involved parties for funding our work through the Microsoft FOSS Fund program.
What My Project Does
Niquests is a HTTP Client. It aims to continue and expand the well established Requests library.
For many years now, Requests has been frozen. Being left in a vegetative state and not evolving,
this blocked millions of developers from using more advanced features.
Target Audience
It is a production ready solution. So everyone is potentially concerned.
Comparison
Niquests is the only HTTP client capable of serving HTTP/1.1, HTTP/2, and HTTP/3 automatically.
The project went deep into the protocols (early responses, trailer headers, etc...) and all related
networking essentials (like DNS-over-HTTPS, advanced performance metering, etc..)
You may find the project at: https://github.com/jawah/niquests
/r/Python
https://redd.it/1fyv8uh
GitHub
GitHub - jawah/niquests: Drop-in replacement for Requests. Automatic HTTP/1.1, HTTP/2, and HTTP/3. WebSocket, and SSE included.
Drop-in replacement for Requests. Automatic HTTP/1.1, HTTP/2, and HTTP/3. WebSocket, and SSE included. - jawah/niquests
ZMAG (ZeroMQ & GraphQL)
Hi everyone,
# Docs:
[https://hlop3z.github.io/zmag/](https://hlop3z.github.io/zmag/)
# GitHub:
[https://github.com/hlop3z/zmag/](https://github.com/hlop3z/zmag/)
# What My Project Does:
ZMAG is a framework designed for building **network APIs** rather than traditional web applications, leveraging the unique combination of **GraphQL** and **ZeroMQ**. With **ZeroMQ** you can create different system. Examples:
* **Request / Response**
* **Push / Pull**
* **Publish / Subscribe**
# Target Audience:
Currently is a toy project, I’m going to use it to manage projects internally, which I made with Django and FastAPI.
# Comparison:
As far as I know there’s nothing that combines **GraphQL** and **ZeroMQ** into a framework. Something similar I know that exist but not with GraphQL is [https://www.zerorpc.io/](https://www.zerorpc.io/)
/r/Python
https://redd.it/1fyu9v6
Hi everyone,
# Docs:
[https://hlop3z.github.io/zmag/](https://hlop3z.github.io/zmag/)
# GitHub:
[https://github.com/hlop3z/zmag/](https://github.com/hlop3z/zmag/)
# What My Project Does:
ZMAG is a framework designed for building **network APIs** rather than traditional web applications, leveraging the unique combination of **GraphQL** and **ZeroMQ**. With **ZeroMQ** you can create different system. Examples:
* **Request / Response**
* **Push / Pull**
* **Publish / Subscribe**
# Target Audience:
Currently is a toy project, I’m going to use it to manage projects internally, which I made with Django and FastAPI.
# Comparison:
As far as I know there’s nothing that combines **GraphQL** and **ZeroMQ** into a framework. Something similar I know that exist but not with GraphQL is [https://www.zerorpc.io/](https://www.zerorpc.io/)
/r/Python
https://redd.it/1fyu9v6
GitHub
GitHub - hlop3z/zmag: ZeroMQ + GraphQL
ZeroMQ + GraphQL. Contribute to hlop3z/zmag development by creating an account on GitHub.
Loading private key of a certificate in local windows machine store
To use Microsoft graph API we use a service principal and a certificate. I can retrieve the certificate if it’s in azure key vault and use it to get an MSAL token for authentication. I am unable to do that if the certificate is in local windows machine certificate store.
Has anyone ever did this? I can’t find any working samples on the internet.
Would really appreciate a solution.
/r/Python
https://redd.it/1fz0ud0
To use Microsoft graph API we use a service principal and a certificate. I can retrieve the certificate if it’s in azure key vault and use it to get an MSAL token for authentication. I am unable to do that if the certificate is in local windows machine certificate store.
Has anyone ever did this? I can’t find any working samples on the internet.
Would really appreciate a solution.
/r/Python
https://redd.it/1fz0ud0
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How to configure celery?
I am currently running a flask backend server that is used for various features and one of the features I have added is a model for prediction that takes about 5 to 10 minutes to train on hitting an api on frontend which works fine but the api itself timesout after 2 minutes although the model still gets trained and stored for each user. Now issue is to prevent a mad user experience I wanted to train the model in background and came across celery with redis which I was already for storing sessions so thought to use it and everything runs only just when I use @shared_task decorator to run my task it give Error 61 of connection refused although on running the celery command and backend it says celery is connected. Can someone help me here?
Edit - I used rabbitmq as the broker and redis as result backend and everything worked smoothly. Thanks everyone
/r/flask
https://redd.it/1fyajiz
I am currently running a flask backend server that is used for various features and one of the features I have added is a model for prediction that takes about 5 to 10 minutes to train on hitting an api on frontend which works fine but the api itself timesout after 2 minutes although the model still gets trained and stored for each user. Now issue is to prevent a mad user experience I wanted to train the model in background and came across celery with redis which I was already for storing sessions so thought to use it and everything runs only just when I use @shared_task decorator to run my task it give Error 61 of connection refused although on running the celery command and backend it says celery is connected. Can someone help me here?
Edit - I used rabbitmq as the broker and redis as result backend and everything worked smoothly. Thanks everyone
/r/flask
https://redd.it/1fyajiz
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Production level project help..
I am using boto3 with flask to convert video files (wth mediaConverter), after job done then only saving the video related data in mongodb, but how can I get to know the job is done, so I used sqs and SNS of AWS is it good in production level
Or u have some other approaches..
I want different scenarios and solutions instead of sns and sqs help with this please 🥺
/r/flask
https://redd.it/1fy7fi7
I am using boto3 with flask to convert video files (wth mediaConverter), after job done then only saving the video related data in mongodb, but how can I get to know the job is done, so I used sqs and SNS of AWS is it good in production level
Or u have some other approaches..
I want different scenarios and solutions instead of sns and sqs help with this please 🥺
/r/flask
https://redd.it/1fy7fi7
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
2024 Python Developers Survey
The 2024 Python Developers Survey run by the Python Software Foundation in partnership with JetBrains is now open!
Survey Link - 10-15 minutes to complete
Blog post
/r/Python
https://redd.it/1fz1siq
The 2024 Python Developers Survey run by the Python Software Foundation in partnership with JetBrains is now open!
Survey Link - 10-15 minutes to complete
Blog post
/r/Python
https://redd.it/1fz1siq
Alchemer
Python Developers Survey 2024
The official Python Developers Survey 2024. Join and contribute to the community knowledge!
I make a python library for use as wrapper and transform a pdf in html without lose format
Hello everyone, how are you? I recently created a library wrapper for PDF2HTMLEX for use in Python, this library can transform PDF files to HTML and also convert all PDF files in a folder to HTML semi-automatically.
I would appreciate your feedback by using it, making pull requests or stars if you like:
Repository URL:
https://github.com/gabriel-batistuta/pypdf2htmlEX
The library can be downloaded from PYPI as well:
https://pypi.org/project/pypdf2htmlex/
/r/Python
https://redd.it/1fz9ynu
Hello everyone, how are you? I recently created a library wrapper for PDF2HTMLEX for use in Python, this library can transform PDF files to HTML and also convert all PDF files in a folder to HTML semi-automatically.
I would appreciate your feedback by using it, making pull requests or stars if you like:
Repository URL:
https://github.com/gabriel-batistuta/pypdf2htmlEX
The library can be downloaded from PYPI as well:
https://pypi.org/project/pypdf2htmlex/
/r/Python
https://redd.it/1fz9ynu
GitHub
GitHub - gabriel-batistuta/pypdf2htmlEX: a simple python wrapper for the pdf2htmlEX
a simple python wrapper for the pdf2htmlEX. Contribute to gabriel-batistuta/pypdf2htmlEX development by creating an account on GitHub.
I just wanna tell you guys that I did it!
I'm sorry oif this is not the right space but I didn't have someone to share this and would actually understand my happiness.
I was finally able to deploy my Django application on Digital Ocean with Postgres, Nginx, and Gunicorn on its Ubuntu machine. I also pointed my domain to the IP and set up the SSL certification. This took me days and I had to destroy the machine multiple times. Oh I also configured redis and celery with different workers.
I'm so hyped 😂😂
/r/django
https://redd.it/1fywr26
I'm sorry oif this is not the right space but I didn't have someone to share this and would actually understand my happiness.
I was finally able to deploy my Django application on Digital Ocean with Postgres, Nginx, and Gunicorn on its Ubuntu machine. I also pointed my domain to the IP and set up the SSL certification. This took me days and I had to destroy the machine multiple times. Oh I also configured redis and celery with different workers.
I'm so hyped 😂😂
/r/django
https://redd.it/1fywr26
Reddit
From the django community on Reddit
Explore this post and more from the django community
Django bugfix release issued: 5.1.2
https://www.djangoproject.com/weblog/2024/oct/08/bugfix-releases/
/r/django
https://redd.it/1fz1xdr
https://www.djangoproject.com/weblog/2024/oct/08/bugfix-releases/
/r/django
https://redd.it/1fz1xdr
Django Project
Django bugfix release issued: 5.1.2
Posted by Natalia Bidart on Oct. 8, 2024
Beginner's Guide for Django Deployment
Hey all,
I've noticed beginners struggling with Django deployment, so I wanted to share this free and open-source guide. It is beginner-friendly, explains the process clearly, and helps you get your project deployed quickly.
Any contributions are welcome from the community to improve this guide. If you find it useful, please consider giving the GitHub repo a star ⭐ (it helps a lot!)
Link: Beginner's Guide for Django Deployment
GitHub Repo: https://github.com/bhavya-tech/django-deployment
Feel free to ask questions here, I will be happy to help!
Happy coding!
/r/django
https://redd.it/1fz1t5d
Hey all,
I've noticed beginners struggling with Django deployment, so I wanted to share this free and open-source guide. It is beginner-friendly, explains the process clearly, and helps you get your project deployed quickly.
Any contributions are welcome from the community to improve this guide. If you find it useful, please consider giving the GitHub repo a star ⭐ (it helps a lot!)
Link: Beginner's Guide for Django Deployment
GitHub Repo: https://github.com/bhavya-tech/django-deployment
Feel free to ask questions here, I will be happy to help!
Happy coding!
/r/django
https://redd.it/1fz1t5d
bhavya-tech.github.io
Django Deployment | Django Deployment
Denoscription will go into a meta tag in <head />
Wednesday Daily Thread: Beginner questions
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1fzeenv
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1fzeenv
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. | 414235 members
so i made a download website LOL
Yeah, so I'll probably get tracked down by the government, but who cares? XD Look at that site!
Basically, it's a download site for movies. They're in zip files, etc.
FBI Comin for me boys
https://javu.xyz/
/r/flask
https://redd.it/1fzn2vq
Yeah, so I'll probably get tracked down by the government, but who cares? XD Look at that site!
Basically, it's a download site for movies. They're in zip files, etc.
FBI Comin for me boys
https://javu.xyz/
/r/flask
https://redd.it/1fzn2vq
I Made Spotify Premium, But This Time It's Free
A while ago, I shared how I built a Python noscript to download my Spotify Liked Songs as MP3s. Since then, I decided to take the project one step further. Instead of manually running the noscript every time I added new songs, I’ve now automated the entire process to check for new liked songs every day and download them automatically.
Here’s how it works:
- Extracts my Liked Songs from Spotify using the spotipy library.
- Compares them with the list of songs already downloaded to avoid duplicates.
- Uses youtubesearchpython to find the top YouTube result for any new songs.
- Downloads the audio as an MP3 using yt-dlp and stores them in the Songs directory on my desktop.
It’s simple, but it now saves me even more time. I no longer have to worry about manually managing my favorite songs!
This project was so fun to work on, and now I've made it even smarter, by making it run automatically using the Windows built-in Task Scheduler!
I was thinking of making this like a paid tool, with a small cost of $2, but I figured let's share this with people so they can also benefit :)
Here's the GitHub repo:
https://github.com/aneeb02/SpotiFlopy
/r/Python
https://redd.it/1fzidjo
A while ago, I shared how I built a Python noscript to download my Spotify Liked Songs as MP3s. Since then, I decided to take the project one step further. Instead of manually running the noscript every time I added new songs, I’ve now automated the entire process to check for new liked songs every day and download them automatically.
Here’s how it works:
- Extracts my Liked Songs from Spotify using the spotipy library.
- Compares them with the list of songs already downloaded to avoid duplicates.
- Uses youtubesearchpython to find the top YouTube result for any new songs.
- Downloads the audio as an MP3 using yt-dlp and stores them in the Songs directory on my desktop.
It’s simple, but it now saves me even more time. I no longer have to worry about manually managing my favorite songs!
This project was so fun to work on, and now I've made it even smarter, by making it run automatically using the Windows built-in Task Scheduler!
I was thinking of making this like a paid tool, with a small cost of $2, but I figured let's share this with people so they can also benefit :)
Here's the GitHub repo:
https://github.com/aneeb02/SpotiFlopy
/r/Python
https://redd.it/1fzidjo
GitHub
GitHub - aneeb02/SpotiFlopy: Automatically download all your liked songs on Spotify, without paying a dime.
Automatically download all your liked songs on Spotify, without paying a dime. - aneeb02/SpotiFlopy
Routes not getting registered. 404 error
I'm using Flask for the first time, and I'm a baby programmer. This is my base template.
from flask import render_template
from app import app
from app.data_handler import DataHandler
data_handler = DataHandler()
@app.route('/')
def home():
return render_template('about.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/my_works')
def my_works():
projects = data_handler.get_projects()
print(projects) # Check what projects are loaded
return render_template('my_works.html', projects=projects)
@app.route('/project/<int:project_id>')
def project_detail(project_id):
project = data_handler.get_project(project_id)
if project is not None:
return render_template('project_detail.html', project=project)
else:
print("Project not found")
return "Project not found", 404
/r/flask
https://redd.it/1fzi7sd
I'm using Flask for the first time, and I'm a baby programmer. This is my base template.
from flask import render_template
from app import app
from app.data_handler import DataHandler
data_handler = DataHandler()
@app.route('/')
def home():
return render_template('about.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/my_works')
def my_works():
projects = data_handler.get_projects()
print(projects) # Check what projects are loaded
return render_template('my_works.html', projects=projects)
@app.route('/project/<int:project_id>')
def project_detail(project_id):
project = data_handler.get_project(project_id)
if project is not None:
return render_template('project_detail.html', project=project)
else:
print("Project not found")
return "Project not found", 404
/r/flask
https://redd.it/1fzi7sd
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
N The 2024 Nobel Prize in Chemistry goes to the people Google Deepmind's AlphaFold. One half to David Baker and the other half jointly to Demis Hassabis and John M. Jumper.
Announcement: https://twitter.com/NobelPrize/status/1843951197960777760
/r/MachineLearning
https://redd.it/1fznxyr
Announcement: https://twitter.com/NobelPrize/status/1843951197960777760
/r/MachineLearning
https://redd.it/1fznxyr
X (formerly Twitter)
The Nobel Prize (@NobelPrize) on X
BREAKING NEWS
The Royal Swedish Academy of Sciences has decided to award the 2024 #NobelPrize in Chemistry with one half to David Baker “for computational protein design” and the other half jointly to Demis Hassabis and John M. Jumper “for protein structure…
The Royal Swedish Academy of Sciences has decided to award the 2024 #NobelPrize in Chemistry with one half to David Baker “for computational protein design” and the other half jointly to Demis Hassabis and John M. Jumper “for protein structure…
is there a way to make pyright recognize related name fields?
from django.db import models
class A(models.Model):
id = models.IntegerField()
class B(models.Model):
id = models.IntegerField()
fkA = models.ForeignKey(A, ondelete=models.CASCADE, relatedname="fkB")
a = A(id=1)
b = B(id=2, fkA=a)
a.fkB #Here it says it cannot access attribute fkB for class A
take for example the code snippet above. is there a way to make pyright know that fk\B fields for class A exists?
/r/django
https://redd.it/1fzlr75
from django.db import models
class A(models.Model):
id = models.IntegerField()
class B(models.Model):
id = models.IntegerField()
fkA = models.ForeignKey(A, ondelete=models.CASCADE, relatedname="fkB")
a = A(id=1)
b = B(id=2, fkA=a)
a.fkB #Here it says it cannot access attribute fkB for class A
take for example the code snippet above. is there a way to make pyright know that fk\B fields for class A exists?
/r/django
https://redd.it/1fzlr75
Reddit
From the django community on Reddit
Explore this post and more from the django community
Do multiple requests create multiple instances of a middleware object?
For example, let's say you have some middleware that does something with process_view(), to run some code before a view is rendered. If you have you Django app deployed with Guincorn and Nginix, does every client request get its own instantiation of that middleware class? Or do they all share the same instantiation of that object in memory wherever your code is deployed? (or does each of Gunicorn's workers create its own instantiation?)
/r/djangolearning
https://redd.it/1fzswzm
For example, let's say you have some middleware that does something with process_view(), to run some code before a view is rendered. If you have you Django app deployed with Guincorn and Nginix, does every client request get its own instantiation of that middleware class? Or do they all share the same instantiation of that object in memory wherever your code is deployed? (or does each of Gunicorn's workers create its own instantiation?)
/r/djangolearning
https://redd.it/1fzswzm
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
What personal challenges have you solved using Python? Any interesting projects or automations?
Hey everyone! I'm curious—what have you used Python for in your daily life? Are there any small, repetitive tasks you've automated that made things easier or saved you time? I'd love to hear about it!
I stumbled upon an old article on this Python a while ago. I think it's worth revisiting this topic about it again.
/r/Python
https://redd.it/1fzupwm
Hey everyone! I'm curious—what have you used Python for in your daily life? Are there any small, repetitive tasks you've automated that made things easier or saved you time? I'd love to hear about it!
I stumbled upon an old article on this Python a while ago. I think it's worth revisiting this topic about it again.
/r/Python
https://redd.it/1fzupwm
Reddit
From the Python community on Reddit
Explore this post and more from the Python community