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/1lauzll
# 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/1lauzll
Amazon
Fluent Python: Clear, Concise, and Effective Programming
Fluent Python: Clear, Concise, and Effective Programming [Ramalho, Luciano] on Amazon.com. *FREE* shipping on qualifying offers. Fluent Python: Clear, Concise, and Effective Programming
How do I implement rate limiting?
How do I implement rate limiting? Would I have to use redis?
/r/django
https://redd.it/1lav2ko
How do I implement rate limiting? Would I have to use redis?
/r/django
https://redd.it/1lav2ko
Reddit
From the django community on Reddit
Explore this post and more from the django community
How do I implement rate limiting?
How do I implement rate limiting in my api? Would I have to use redis?
/r/flask
https://redd.it/1lav24s
How do I implement rate limiting in my api? Would I have to use redis?
/r/flask
https://redd.it/1lav24s
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
I built "Submind" – a beautiful PyQt6 app to batch transcribe and auto-translate subtitles
# What My Project Does
**Submind** is a minimal, modern PyQt6-based desktop app that lets you transcribe audio or video files into `.srt` Subtitles using OpenAI’s Whisper model.
🎧 **Features**:
* Transcribe single or multiple files at once (batch mode)
* Optional auto-translation into another language
* Save the original and translated subtitles separately
* Whisper runs locally (no API key required)
* Clean UI with tabs for single/batch processing
It uses the open-source Whisper model ([https://github.com/openai/whisper](https://github.com/openai/whisper)) and supports common media formats like `.mp3`, `.mp4`, `.wav`, `.mkv`, etc.
# Target Audience
This tool is aimed at:
* Content creators or editors who work with subtitles frequently
* Students or educators needing quick lecture transcription
* Developers who want a clean UI example integrating Whisper
* Anyone looking for a fast, local way to convert media to `.srt`
It’s not yet meant for large-scale production, but it’s a polished MVP with useful features for individuals and small teams.
# Comparison
I didn't see any Qt Apps for Whisper yet. Please comment if you have seen any.
# Try it out
GitHub: [rohankishore/Submind](https://github.com/rohankishore/Submind)
Let me know what you think! I'm open to feature suggestions — I’m considering adding drag-and-drop, speaker labeling, and live waveform preview soon. 😄
/r/Python
https://redd.it/1lap8mz
# What My Project Does
**Submind** is a minimal, modern PyQt6-based desktop app that lets you transcribe audio or video files into `.srt` Subtitles using OpenAI’s Whisper model.
🎧 **Features**:
* Transcribe single or multiple files at once (batch mode)
* Optional auto-translation into another language
* Save the original and translated subtitles separately
* Whisper runs locally (no API key required)
* Clean UI with tabs for single/batch processing
It uses the open-source Whisper model ([https://github.com/openai/whisper](https://github.com/openai/whisper)) and supports common media formats like `.mp3`, `.mp4`, `.wav`, `.mkv`, etc.
# Target Audience
This tool is aimed at:
* Content creators or editors who work with subtitles frequently
* Students or educators needing quick lecture transcription
* Developers who want a clean UI example integrating Whisper
* Anyone looking for a fast, local way to convert media to `.srt`
It’s not yet meant for large-scale production, but it’s a polished MVP with useful features for individuals and small teams.
# Comparison
I didn't see any Qt Apps for Whisper yet. Please comment if you have seen any.
# Try it out
GitHub: [rohankishore/Submind](https://github.com/rohankishore/Submind)
Let me know what you think! I'm open to feature suggestions — I’m considering adding drag-and-drop, speaker labeling, and live waveform preview soon. 😄
/r/Python
https://redd.it/1lap8mz
GitHub
GitHub - openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision
Robust Speech Recognition via Large-Scale Weak Supervision - openai/whisper
MCPGex - MCP server for finding, testing and refining regex patterns
Hello,
Wanted to showcase my recently published project, MCPGex, which may be of use to many of you that want to find, test, and refine regex patterns with LLMs.
What My Project Does
MCPGex is an MCP server that allows LLMs to test and validate regex patterns against test cases. It provides a systematic way to develop regex patterns by defining or generating expected outcomes and iteratively testing patterns until all requirements are satisfied. LLMs sometimes fail to capture the correct regex pattern on the first or even second try, so MCPGex allows them to test their regex patterns out.
Target Audience
MCPGex is for anyone who uses regex patterns and would like to have a quick way to generate regex patterns that work. Instead of searching for regex patterns when you forget them, you can ask to have them generated. Of all the regex tasks given thus far, MCPGex has provided the LLM the ability to successfully get the right pattern.
Comparison
As far as I know, there is nothing similar to MCPGex that allows LLMs to test and refine their generated regex patterns. I may be mistaken, and if I am, feel free to correct me! :)
You can go to the project GitHub page by
/r/Python
https://redd.it/1lav4s8
Hello,
Wanted to showcase my recently published project, MCPGex, which may be of use to many of you that want to find, test, and refine regex patterns with LLMs.
What My Project Does
MCPGex is an MCP server that allows LLMs to test and validate regex patterns against test cases. It provides a systematic way to develop regex patterns by defining or generating expected outcomes and iteratively testing patterns until all requirements are satisfied. LLMs sometimes fail to capture the correct regex pattern on the first or even second try, so MCPGex allows them to test their regex patterns out.
Target Audience
MCPGex is for anyone who uses regex patterns and would like to have a quick way to generate regex patterns that work. Instead of searching for regex patterns when you forget them, you can ask to have them generated. Of all the regex tasks given thus far, MCPGex has provided the LLM the ability to successfully get the right pattern.
Comparison
As far as I know, there is nothing similar to MCPGex that allows LLMs to test and refine their generated regex patterns. I may be mistaken, and if I am, feel free to correct me! :)
You can go to the project GitHub page by
/r/Python
https://redd.it/1lav4s8
Reddit
From the Python community on Reddit: MCPGex - MCP server for finding, testing and refining regex patterns
Explore this post and more from the Python community
My HDR Photo Maker
https://github.com/Coolythecoder/HDR-Photo-Maker is my repo and converts SDR to HDR.
/r/Python
https://redd.it/1laqarr
https://github.com/Coolythecoder/HDR-Photo-Maker is my repo and converts SDR to HDR.
/r/Python
https://redd.it/1laqarr
GitHub
GitHub - Coolythecoder/HDR-Photo-Maker: Makes SDR photos HDR
Makes SDR photos HDR. Contribute to Coolythecoder/HDR-Photo-Maker development by creating an account on GitHub.
🎉 Update on django-lastdayofmonth integration
Hi everyone!
I recently released **django-lastdayofmonth v1.1.0**, officially tested with **Django 3.2 – 5.2** and **Python 3.10 – 3.12**. The package provides a convenient, database-agnostic ORM function for determining the last day of any month.
The main highlights since the original proposal:
* ✅ **Official Django 5.2 support** (just released!)
* ✅ Simplified usage — no longer requires adding to `INSTALLED_APPS`
* ✅ Fully tested and stable across supported Django and Python versions.
📌 **Link to PyPI:**
[https://pypi.org/project/django-lastdayofmonth/](https://pypi.org/project/django-lastdayofmonth/)
📌 **GitHub Repository:**
[https://github.com/nobilebeniamino/django-lastdayofmonth](https://github.com/nobilebeniamino/django-lastdayofmonth)
I'd still love to see this functionality become a core part of Django, making date calculations easier for everyone.
If you find this feature valuable, please consider showing your support by adding a 👍 reaction to the GitHub issue below:
👉 [**Django Issue #38**](https://github.com/django/new-features/issues/38) 👈
Thanks again for your help and support—let's see if we can make Django even better together! 🚀
/r/django
https://redd.it/1lb1tgk
Hi everyone!
I recently released **django-lastdayofmonth v1.1.0**, officially tested with **Django 3.2 – 5.2** and **Python 3.10 – 3.12**. The package provides a convenient, database-agnostic ORM function for determining the last day of any month.
The main highlights since the original proposal:
* ✅ **Official Django 5.2 support** (just released!)
* ✅ Simplified usage — no longer requires adding to `INSTALLED_APPS`
* ✅ Fully tested and stable across supported Django and Python versions.
📌 **Link to PyPI:**
[https://pypi.org/project/django-lastdayofmonth/](https://pypi.org/project/django-lastdayofmonth/)
📌 **GitHub Repository:**
[https://github.com/nobilebeniamino/django-lastdayofmonth](https://github.com/nobilebeniamino/django-lastdayofmonth)
I'd still love to see this functionality become a core part of Django, making date calculations easier for everyone.
If you find this feature valuable, please consider showing your support by adding a 👍 reaction to the GitHub issue below:
👉 [**Django Issue #38**](https://github.com/django/new-features/issues/38) 👈
Thanks again for your help and support—let's see if we can make Django even better together! 🚀
/r/django
https://redd.it/1lb1tgk
PyPI
django-lastdayofmonth
Cross-database LastDayOfMonth function for Django ORM
Recent Noteworthy Package Releases
Over the last 7 days, I've noticed these significant upgrades in the Python package ecosystem.
**NumPy 2.3.0**
**google-adk 1.3.0**
**pip-system-certs 5.0**
**django-multiselectfield 1.0.0**
**shap 0.48.0**
**django-waffle 5.0.0**
**schemathesis 4.0.0**
/r/Python
https://redd.it/1laazsd
Over the last 7 days, I've noticed these significant upgrades in the Python package ecosystem.
**NumPy 2.3.0**
**google-adk 1.3.0**
**pip-system-certs 5.0**
**django-multiselectfield 1.0.0**
**shap 0.48.0**
**django-waffle 5.0.0**
**schemathesis 4.0.0**
/r/Python
https://redd.it/1laazsd
GitHub
Release v2.3.0 (June 7, 2025) · numpy/numpy
NumPy 2.3.0 Release Notes
The NumPy 2.3.0 release continues the work to improve free threaded
Python support and annotations together with the usual set of bug fixes.
It is unusual in the number of...
The NumPy 2.3.0 release continues the work to improve free threaded
Python support and annotations together with the usual set of bug fixes.
It is unusual in the number of...
Premier: Instantly Turn Your ASGI App into an API Gateway
Hey everyone! I've been working on a project called Premier that I think might be useful for Python developers who need API gateway functionality without the complexity of enterprise solutions.
## What My Project Does
Premier is a versatile resilience framework that adds retry, cache, throttle logic to your python app.
It operates in three main ways:
1. Lightweight Standalone API Gateway - Run as a dedicated gateway service
2. ASGI App/Middleware - Wrap existing ASGI applications without code changes
3. Function Resilience Toolbox - Flexible yet powerful decorators for cache, retry, timeout, and throttle logic
The core idea is simple: add enterprise-grade features like caching, rate limiting, retry logic, timeouts, and performance monitoring to your existing Python web apps with minimal effort.
### Key Features
- Response Caching - Smart caching with TTL and custom cache keys
- Rate Limiting - Multiple algorithms (fixed/sliding window, token/leaky bucket) that work with distributed applications
- Retry Logic - Configurable retry strategies with exponential backoff
- Request Timeouts - Per-path timeout protection
- Path-Based Policies - Different features per route with regex matching
- YAML Configuration - Declarative configuration with namespace support
### Why Premier
Premier lets you instantly add API gateway features to your existing ASGI applications without introducing heavy, complex tech stacks like Kong or
/r/Python
https://redd.it/1lb52n0
Hey everyone! I've been working on a project called Premier that I think might be useful for Python developers who need API gateway functionality without the complexity of enterprise solutions.
## What My Project Does
Premier is a versatile resilience framework that adds retry, cache, throttle logic to your python app.
It operates in three main ways:
1. Lightweight Standalone API Gateway - Run as a dedicated gateway service
2. ASGI App/Middleware - Wrap existing ASGI applications without code changes
3. Function Resilience Toolbox - Flexible yet powerful decorators for cache, retry, timeout, and throttle logic
The core idea is simple: add enterprise-grade features like caching, rate limiting, retry logic, timeouts, and performance monitoring to your existing Python web apps with minimal effort.
### Key Features
- Response Caching - Smart caching with TTL and custom cache keys
- Rate Limiting - Multiple algorithms (fixed/sliding window, token/leaky bucket) that work with distributed applications
- Retry Logic - Configurable retry strategies with exponential backoff
- Request Timeouts - Per-path timeout protection
- Path-Based Policies - Different features per route with regex matching
- YAML Configuration - Declarative configuration with namespace support
### Why Premier
Premier lets you instantly add API gateway features to your existing ASGI applications without introducing heavy, complex tech stacks like Kong or
/r/Python
https://redd.it/1lb52n0
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
P 3Blue1Brown Follow-up: From Hypothetical Examples to LLM Circuit Visualization
About a year ago, I watched this 3Blue1Brown LLM tutorial on how a model’s self-attention mechanism is used to predict the next token in a sequence, and I was surprised by how little we know about what actually happens when processing the sentence "A fluffy blue creature roamed the verdant forest."
A year later, the field of mechanistic interpretability has seen significant advancements, and we're now able to "decompose" models into interpretable circuits that help explain how LLMs produce predictions. Using the second iteration of an LLM "debugger" I've been working on, I compare the hypothetical representations used in the tutorial to the actual representations I see when extracting a circuit that describes the processing of this specific sentence. If you're into model interpretability, please take a look! https://peterlai.github.io/gpt-circuits/
/r/MachineLearning
https://redd.it/1laqsz2
About a year ago, I watched this 3Blue1Brown LLM tutorial on how a model’s self-attention mechanism is used to predict the next token in a sequence, and I was surprised by how little we know about what actually happens when processing the sentence "A fluffy blue creature roamed the verdant forest."
A year later, the field of mechanistic interpretability has seen significant advancements, and we're now able to "decompose" models into interpretable circuits that help explain how LLMs produce predictions. Using the second iteration of an LLM "debugger" I've been working on, I compare the hypothetical representations used in the tutorial to the actual representations I see when extracting a circuit that describes the processing of this specific sentence. If you're into model interpretability, please take a look! https://peterlai.github.io/gpt-circuits/
/r/MachineLearning
https://redd.it/1laqsz2
YouTube
Attention in transformers, step-by-step | DL6
Demystifying attention, the key mechanism inside transformers and LLMs.
Instead of sponsored ad reads, these lessons are funded directly by viewers: https://3b1b.co/support
Special thanks to these supporters: https://www.3blue1brown.com/lessons/attention#thanks…
Instead of sponsored ad reads, these lessons are funded directly by viewers: https://3b1b.co/support
Special thanks to these supporters: https://www.3blue1brown.com/lessons/attention#thanks…
Is there a reason for needing to import so many libraries?
Me and a friend are working on a school project for which we **have to** use flask for the backend. I realised that we needed to import a metric fuckton of libraries for buttons, forms and that type of stuff.
Is there a reason for that?
/r/flask
https://redd.it/1lbaaqw
Me and a friend are working on a school project for which we **have to** use flask for the backend. I realised that we needed to import a metric fuckton of libraries for buttons, forms and that type of stuff.
Is there a reason for that?
/r/flask
https://redd.it/1lbaaqw
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Local LLM Memorization – A fully local memory system for long-term recall and visualization
Hey r/Python!
I've been working on my first project called LLM Memorization — a fully local memory system for your LLMs, designed to work with tools like LM Studio, Ollama, or Transformer Lab.
The idea is simple: If you're running a local LLM, why not give it a memory?
# What My Project Does
Logs all your LLM chats into a local SQLite database
Extracts key information from each exchange (questions, answers, keywords, timestamps, models…)
Syncs automatically with LM Studio (or other local UIs with minor tweaks)
Removes duplicates and performs idea extraction to keep the database clean and useful
Retrieves similar past conversations when you ask a new question
Summarizes the relevant memory using a local T5-style model and injects it into your prompt
Visualizes the input question, the enhanced prompt, and the memory base
Runs as a lightweight Python CLI, designed for fast local use and easy customization
# Why does this matter?
Most local LLM setups forget everything between sessions.
That’s fine for quick Q&A — but what if you’re working on a long-term project, or want your model to remember what matters?
With LLM Memorization, your memory stays on your machine.
No cloud. No API calls. No privacy concerns. Just a growing personal knowledge
/r/Python
https://redd.it/1lb9fcr
Hey r/Python!
I've been working on my first project called LLM Memorization — a fully local memory system for your LLMs, designed to work with tools like LM Studio, Ollama, or Transformer Lab.
The idea is simple: If you're running a local LLM, why not give it a memory?
# What My Project Does
Logs all your LLM chats into a local SQLite database
Extracts key information from each exchange (questions, answers, keywords, timestamps, models…)
Syncs automatically with LM Studio (or other local UIs with minor tweaks)
Removes duplicates and performs idea extraction to keep the database clean and useful
Retrieves similar past conversations when you ask a new question
Summarizes the relevant memory using a local T5-style model and injects it into your prompt
Visualizes the input question, the enhanced prompt, and the memory base
Runs as a lightweight Python CLI, designed for fast local use and easy customization
# Why does this matter?
Most local LLM setups forget everything between sessions.
That’s fine for quick Q&A — but what if you’re working on a long-term project, or want your model to remember what matters?
With LLM Memorization, your memory stays on your machine.
No cloud. No API calls. No privacy concerns. Just a growing personal knowledge
/r/Python
https://redd.it/1lb9fcr
Reddit
From the Python community on Reddit: Local LLM Memorization – A fully local memory system for long-term recall and visualization
Explore this post and more from the Python community
Building an ERP: ready-made platforms vs custom development
I’m a software engineer, and a client has asked me to deliver a fast B2B solution. I’d never heard of Odoo before and I’m curious whether it could really save me time on the infrastructure side. I’m looking for a platform I can customize with my own code and integrations, and so far I’ve shortlisted ERPNext, Odoo, and Axelor as ready-made options.
Long story short, I’m building a portal where electronics suppliers can log in and upload products to the company for which I’m developing the ERP; that company will then resell those items to smaller retailers at a steep discount. Major chains such as Micro Center, Electronic Express, and Abt Electronics will need access as well. The company essentially acts as an intermediary, handling all purchase requests, shipment tracking, and invoicing.
My question: Is it really better to leverage one of these ready-made frameworks, or would building the system from scratch give me a more solid and scalable solution?
/r/Python
https://redd.it/1lb5jk5
I’m a software engineer, and a client has asked me to deliver a fast B2B solution. I’d never heard of Odoo before and I’m curious whether it could really save me time on the infrastructure side. I’m looking for a platform I can customize with my own code and integrations, and so far I’ve shortlisted ERPNext, Odoo, and Axelor as ready-made options.
Long story short, I’m building a portal where electronics suppliers can log in and upload products to the company for which I’m developing the ERP; that company will then resell those items to smaller retailers at a steep discount. Major chains such as Micro Center, Electronic Express, and Abt Electronics will need access as well. The company essentially acts as an intermediary, handling all purchase requests, shipment tracking, and invoicing.
My question: Is it really better to leverage one of these ready-made frameworks, or would building the system from scratch give me a more solid and scalable solution?
/r/Python
https://redd.it/1lb5jk5
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Why is Django not the most popular framework?
Python is the most popular programming language with AI/ML becoming centerstage. Then why is Django not the most popular web framework? It seems natural that when models are hosted via API and need a web interface for users, then the Python developers who built the model would opt for Django since it is also in Python.
But I don't see as active an involvement on YouTube for Django compared to Next.js, React, and other Frontend frameworks. Am I misinterpreting it or missing something in my understanding?
I also realised that it's not straightforward to integrate frontend technologies such as Tailwind CSS as it is for other frontend frameworks.
Django has strong security and a fully developed Admin interface which saves lot of development time but still I see that it's not as popular as other frameworks such as Laravel or Next.js.
I am at a point where I need to pick a framework as a goto framework for all my future web development and I am at the moment torn between options and indecisiveness.
I foresee having AI components in my apps and needing to interact with trained models at some point. And I am reluctant if I pick Django,
/r/django
https://redd.it/1lba2to
Python is the most popular programming language with AI/ML becoming centerstage. Then why is Django not the most popular web framework? It seems natural that when models are hosted via API and need a web interface for users, then the Python developers who built the model would opt for Django since it is also in Python.
But I don't see as active an involvement on YouTube for Django compared to Next.js, React, and other Frontend frameworks. Am I misinterpreting it or missing something in my understanding?
I also realised that it's not straightforward to integrate frontend technologies such as Tailwind CSS as it is for other frontend frameworks.
Django has strong security and a fully developed Admin interface which saves lot of development time but still I see that it's not as popular as other frameworks such as Laravel or Next.js.
I am at a point where I need to pick a framework as a goto framework for all my future web development and I am at the moment torn between options and indecisiveness.
I foresee having AI components in my apps and needing to interact with trained models at some point. And I am reluctant if I pick Django,
/r/django
https://redd.it/1lba2to
Reddit
From the django community on Reddit
Explore this post and more from the django community
My First Project With Python FeedBacks
Hii, i started to student python for 8 moths ago and I finally end my first project, I created a simple crud and would like opinions about my code.
Any feedback for me is very important
github: https://github.com/Kelabr/profindustry
/r/Python
https://redd.it/1lbi5uc
Hii, i started to student python for 8 moths ago and I finally end my first project, I created a simple crud and would like opinions about my code.
Any feedback for me is very important
github: https://github.com/Kelabr/profindustry
/r/Python
https://redd.it/1lbi5uc
GitHub
GitHub - Kelabr/profindustry
Contribute to Kelabr/profindustry development by creating an account on GitHub.
how django handles multiple users at the same time
Hey guys, in my almost completed inventory management app i have two types of users (admin and operator), and it is possible and will likely happen, that, once i deploy the app both users will use it at the same time.
an example:
imagine an admin is adding a specific quantity of stock to a product or a new product (functionalities that are specific to this user type) and the operator is removing stock of the same or other product, how is django going to deal with this?
thanks in advance
/r/django
https://redd.it/1lbhqhb
Hey guys, in my almost completed inventory management app i have two types of users (admin and operator), and it is possible and will likely happen, that, once i deploy the app both users will use it at the same time.
an example:
imagine an admin is adding a specific quantity of stock to a product or a new product (functionalities that are specific to this user type) and the operator is removing stock of the same or other product, how is django going to deal with this?
thanks in advance
/r/django
https://redd.it/1lbhqhb
Reddit
From the django community on Reddit
Explore this post and more from the django community
NameError Issue with Flask
I'm trying to make a battle simulator with flask, and I've encountered a really weird issue. The initial index.html renders fine, but when I click on a button that links to another page (that has proper html), i get this NameError: logging is not defined.
My program doesn't use logging, has never used logging, and it doesn't get resolved even after I imported it. My program worked fine, but after I tried downloading an old logging module that subsequently failed (in Thonny if that's important) I've been unable to fix this issue. I've cleared my pycache, I've checked if anything was actually/partially installed. I even tried duplicating everything to a new directory and the issue persisted.
When I replaced my code with a similar project I found online, it worked completely fine, so my code is the issue (same modules imported, same dependencies, etc). However, as I've said, my code worked well before and didn't directly use anything from logging
https://docs.google.com/document/d/1zRAJHpZ1GAntbbYB2MsRDKLeZWplHKIzMJ6h2ggMzuU/edit?usp=sharing (Link to all the code)
Working index.html
When I click on \\"Start Battle!\\" This shows up \(If this is too blurry, the link above has the error text as well\)
The code that is shown in the traceback seems to be weirdly arbitrary. I don't
/r/flask
https://redd.it/1lb967q
I'm trying to make a battle simulator with flask, and I've encountered a really weird issue. The initial index.html renders fine, but when I click on a button that links to another page (that has proper html), i get this NameError: logging is not defined.
My program doesn't use logging, has never used logging, and it doesn't get resolved even after I imported it. My program worked fine, but after I tried downloading an old logging module that subsequently failed (in Thonny if that's important) I've been unable to fix this issue. I've cleared my pycache, I've checked if anything was actually/partially installed. I even tried duplicating everything to a new directory and the issue persisted.
When I replaced my code with a similar project I found online, it worked completely fine, so my code is the issue (same modules imported, same dependencies, etc). However, as I've said, my code worked well before and didn't directly use anything from logging
https://docs.google.com/document/d/1zRAJHpZ1GAntbbYB2MsRDKLeZWplHKIzMJ6h2ggMzuU/edit?usp=sharing (Link to all the code)
Working index.html
When I click on \\"Start Battle!\\" This shows up \(If this is too blurry, the link above has the error text as well\)
The code that is shown in the traceback seems to be weirdly arbitrary. I don't
/r/flask
https://redd.it/1lb967q
Google Docs
b
main.py from flask import Flask, render_template, request, jsonify import requests import requests.exceptions import random import math import json import os import pokebase as pb app = Flask(__name__) @app.route("/", methods=['GET']) def index(): …
Best Resources to Learn Django ?
I already have experience with Flask and have built a couple of small projects using it. Now I'm planning to dive into Django and would love to hear from the community
What are the best resources (courses, tutorials, YouTube channels, books) for learning Django ?
/r/djangolearning
https://redd.it/1lb98qc
I already have experience with Flask and have built a couple of small projects using it. Now I'm planning to dive into Django and would love to hear from the community
What are the best resources (courses, tutorials, YouTube channels, books) for learning Django ?
/r/djangolearning
https://redd.it/1lb98qc
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community