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 denoscription 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
**Denoscription**: 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
**Denoscription**: 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
**Denoscription**: Create a noscript 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/1gtrhgb
# 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 denoscription 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
**Denoscription**: 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
**Denoscription**: 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
**Denoscription**: Create a noscript 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/1gtrhgb
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…
ididi, now with version 1.0.4, supports infinite number of nested scopes!
Hello my peer pythonistas!
9 days ago, I posted my dependency injection lib here
https://www.reddit.com/r/Python/comments/1gn5erp/ididi\_dependency\_injection\_in\_a\_single\_line\_of
In 9 days, ididi has iterated 13 versions, and reached the milestone of 1.0.0(1.0.4 now actually).
https://github.com/raceychan/ididi
I am bringing back ididi to you with a powerful new feature and a nice new documentation.
https://raceychan.github.io/ididi/features/#using-scope-to-manage-resources
A scope is a context that manage the lifespan of resources, a classic usecase would be creating a different database session/connection for each request user send to your endpoint, this separate data access among users.
Unlike most alternatives that either does not support scope, or support finite number of pre-defined scopes,
Ididi now supports infinite number of nested scopes
let's take a glance at the usage here.
async with dg.scope(appname) as appscope:
async with dg.scope(router) as routerscope:
async with dg.scope(endpoint) as endpointscope:
async with dg.scope(userid) as userscope:
async with dg.scope(requestid) as requestscope:
for a basic usage
/r/Python
https://redd.it/1gtr77s
Hello my peer pythonistas!
9 days ago, I posted my dependency injection lib here
https://www.reddit.com/r/Python/comments/1gn5erp/ididi\_dependency\_injection\_in\_a\_single\_line\_of
In 9 days, ididi has iterated 13 versions, and reached the milestone of 1.0.0(1.0.4 now actually).
https://github.com/raceychan/ididi
I am bringing back ididi to you with a powerful new feature and a nice new documentation.
https://raceychan.github.io/ididi/features/#using-scope-to-manage-resources
A scope is a context that manage the lifespan of resources, a classic usecase would be creating a different database session/connection for each request user send to your endpoint, this separate data access among users.
Unlike most alternatives that either does not support scope, or support finite number of pre-defined scopes,
Ididi now supports infinite number of nested scopes
let's take a glance at the usage here.
async with dg.scope(appname) as appscope:
async with dg.scope(router) as routerscope:
async with dg.scope(endpoint) as endpointscope:
async with dg.scope(userid) as userscope:
async with dg.scope(requestid) as requestscope:
for a basic usage
/r/Python
https://redd.it/1gtr77s
Reddit
From the Python community on Reddit: Ididi, dependency injection, in a single line of code
Explore this post and more from the Python community
ansiplot: Pretty (and legible) small console plots.
What My Project Does
Hi all! While developing something different I realized that it would be nice to have a way of plotting multiple curves in the console to get comparative insights (which of those curves is better or worse at certain regions). I am thinking of a 40x10 to 60x20 canvas and maybe 10+ curves that will probably be overlapping a lot.
I couldn't find something to match the exact use case, so I made yet another console plotter:
https://github.com/maniospas/ansiplot
Target Audience
This is mostly a toy project in the sense that it covers the functionalities I am interested in and was made pretty quickly (in an evening). That said, I am creating it for my own production and will be polishing it as needed, so all feedback is welcome.
Comparison
My previous options were previously [asciichart\](https://github.com/kroitor/asciichart), [drawilleplot\](https://github.com/gooofy/drawilleplot) and [asciiplot\](https://github.com/w2sv/asciiplot). I think ansiplot looks less "clean" because it is restricted to using one symbol per curve, creates thicker lines, and does not show axis tics other than the values for mins and maxs (of course, one can add bars to mark precise points).
The first two shortcomings are conscious design decision in service of two features I consider very important:
\- The plots look pretty with
/r/Python
https://redd.it/1gtvy3o
What My Project Does
Hi all! While developing something different I realized that it would be nice to have a way of plotting multiple curves in the console to get comparative insights (which of those curves is better or worse at certain regions). I am thinking of a 40x10 to 60x20 canvas and maybe 10+ curves that will probably be overlapping a lot.
I couldn't find something to match the exact use case, so I made yet another console plotter:
https://github.com/maniospas/ansiplot
Target Audience
This is mostly a toy project in the sense that it covers the functionalities I am interested in and was made pretty quickly (in an evening). That said, I am creating it for my own production and will be polishing it as needed, so all feedback is welcome.
Comparison
My previous options were previously [asciichart\](https://github.com/kroitor/asciichart), [drawilleplot\](https://github.com/gooofy/drawilleplot) and [asciiplot\](https://github.com/w2sv/asciiplot). I think ansiplot looks less "clean" because it is restricted to using one symbol per curve, creates thicker lines, and does not show axis tics other than the values for mins and maxs (of course, one can add bars to mark precise points).
The first two shortcomings are conscious design decision in service of two features I consider very important:
\- The plots look pretty with
/r/Python
https://redd.it/1gtvy3o
GitHub
GitHub - maniospas/ansiplot: Pretty (and legible) console plots in Python.
Pretty (and legible) console plots in Python. Contribute to maniospas/ansiplot development by creating an account on GitHub.
I Understand Machine Learning Models Better by Combining Python Libraries
Hi folks,
I’m currently super interested in neural networks, and I bet many of you are too. PyTorch is the hottest Python library for Machine Learning right now. For anyone starting out, PyTorch can be hard to understand. That’s why I combined PyTorch with Manim (3b1b) to:
1. Train a neural network (PyTorch), and
2. Visualize the model architecture (Manim).
I think the combination of these two Python libraries makes it relatively easy to get started with ML. https://youtu.be/zLEt5oz5Mr8?si=cY-Riirhdi66Zqfy
Have you worked with PyTorch and Manim before? I find Manim particularly challenging, as it often feels like a work in progress.
/r/Python
https://redd.it/1gtyh9o
Hi folks,
I’m currently super interested in neural networks, and I bet many of you are too. PyTorch is the hottest Python library for Machine Learning right now. For anyone starting out, PyTorch can be hard to understand. That’s why I combined PyTorch with Manim (3b1b) to:
1. Train a neural network (PyTorch), and
2. Visualize the model architecture (Manim).
I think the combination of these two Python libraries makes it relatively easy to get started with ML. https://youtu.be/zLEt5oz5Mr8?si=cY-Riirhdi66Zqfy
Have you worked with PyTorch and Manim before? I find Manim particularly challenging, as it often feels like a work in progress.
/r/Python
https://redd.it/1gtyh9o
YouTube
Visual Explanation of Convolutional Neural Network for Image Classification – PyTorch Tutorial
In this video, we’ll classify fruit images using a CNN built in PyTorch while exploring every layer of the model visually.
🔗 Link Python Script: https://drive.google.com/file/d/19yxZ_p4JWyoI62y3JVmxj2F1XfAha9Os/view?usp=sharing
Let me know your thoughts…
🔗 Link Python Script: https://drive.google.com/file/d/19yxZ_p4JWyoI62y3JVmxj2F1XfAha9Os/view?usp=sharing
Let me know your thoughts…
Safe to delete all migration files, run makemigrations and apply the new migration?
Have a repo with 3+ years of migrations and wanted to clean them up. Have read a bit on the squashmigrations-noscript but shouldn't I just be able to delete all the migration files, create a new migration containing all the changes and then run migrate, applying that one?
We don't have any custom migrations that need to be ran.
/r/django
https://redd.it/1gtzh7o
Have a repo with 3+ years of migrations and wanted to clean them up. Have read a bit on the squashmigrations-noscript but shouldn't I just be able to delete all the migration files, create a new migration containing all the changes and then run migrate, applying that one?
We don't have any custom migrations that need to be ran.
/r/django
https://redd.it/1gtzh7o
Reddit
From the django community on Reddit
Explore this post and more from the django community
What AI APIs and toolkits do you use these days to develop a SaaS or any AI-empowered webapp ?
Hey everyone, building AI-empowered consumer products and SaaS is trending these days. I'm curious—besides the obvious ones like ChatGPT or Claude—what tools and APIs do you use to develop faster and more sophisticated web apps?
/r/django
https://redd.it/1gtzu7b
Hey everyone, building AI-empowered consumer products and SaaS is trending these days. I'm curious—besides the obvious ones like ChatGPT or Claude—what tools and APIs do you use to develop faster and more sophisticated web apps?
/r/django
https://redd.it/1gtzu7b
Reddit
From the django community on Reddit
Explore this post and more from the django community
Recursion stuff
So I have a model Task. Each Task can have a subtask and each subtask can have further subtasks. When I display my DetailView, I want to render a Task with a list of its subtasks that are each linked to their own DetailView page. The above all works fine. The problem is when I go to the subtasks detail page, I don't see a list of its subtasks. For example, if I have Big Task (Task), Little Task (Subtask), and Puny Task (Subtask of subtask), when I go to Big Tasks' detail view I see Little Task but when I go to Little Task's detail view I don't see Puny Task (but I do see other information like noscript and denoscription).
The Task model looks like:
class Task(models.Model):
noscript = models.CharField(max_length=255)
denoscription = models.TextField(blank=True, null=True)
completed = models.BooleanField(default=False)
due_date = models.DateTimeField(blank=True, null=True)
parent_task = models.ForeignKey(
/r/django
https://redd.it/1gtrcy0
So I have a model Task. Each Task can have a subtask and each subtask can have further subtasks. When I display my DetailView, I want to render a Task with a list of its subtasks that are each linked to their own DetailView page. The above all works fine. The problem is when I go to the subtasks detail page, I don't see a list of its subtasks. For example, if I have Big Task (Task), Little Task (Subtask), and Puny Task (Subtask of subtask), when I go to Big Tasks' detail view I see Little Task but when I go to Little Task's detail view I don't see Puny Task (but I do see other information like noscript and denoscription).
The Task model looks like:
class Task(models.Model):
noscript = models.CharField(max_length=255)
denoscription = models.TextField(blank=True, null=True)
completed = models.BooleanField(default=False)
due_date = models.DateTimeField(blank=True, null=True)
parent_task = models.ForeignKey(
/r/django
https://redd.it/1gtrcy0
Reddit
From the django community on Reddit
Explore this post and more from the django community
Python Crash Course Notebook for Data Engineering
Hey everyone! Over the last 2 weeks, I put together a **crash course on Python** specifically tailored for Data Engineers. I hope you find it useful! I have been a data engineer for 4+ years and went through various blogs, courses to make sure I cover the essentials along with my own experience.
Feedback and suggestions are always welcome!
📔 **Full Noteboo**k: [Google Colab](https://colab.research.google.com/drive/1r_MmG8vxxboXQCCoXbk2nxEG9mwCjnNy?usp=sharing)
🎥 **Walkthrough Vide**o (1 hour): [YouTube](https://youtu.be/IJm--UbuSaM)
💡 Topics Covered:
1. Python Basics
* Syntax, variables, loops, and conditionals.
2. Working with Collections
* Lists, dictionaries, tuples, and sets.
3. File Handling
* Reading/writing CSV, JSON, Excel, and Parquet files.
4. Data Processing
* Cleaning, aggregating, and analyzing data with pandas and NumPy.
5. Numerical Computing
* Advanced operations with NumPy for efficient computation.
6. Date and Time Manipulations
* Parsing, formatting, and managing date time data.
7. APIs and External Data Connections
* Fetching data securely and integrating APIs into pipelines.
8. Object-Oriented Programming (OOP)
* Designing modular and reusable code.
9. Building ETL Pipelines
* End-to-end workflows for extracting, transforming, and loading data.
10. Data Quality and Testing
* Using `unittest`, `great_expectations`, and `flake8` to ensure clean and robust code.
1. Creating and Deploying Python Packages
* Structuring, building, and distributing Python
/r/Python
https://redd.it/1gu3her
Hey everyone! Over the last 2 weeks, I put together a **crash course on Python** specifically tailored for Data Engineers. I hope you find it useful! I have been a data engineer for 4+ years and went through various blogs, courses to make sure I cover the essentials along with my own experience.
Feedback and suggestions are always welcome!
📔 **Full Noteboo**k: [Google Colab](https://colab.research.google.com/drive/1r_MmG8vxxboXQCCoXbk2nxEG9mwCjnNy?usp=sharing)
🎥 **Walkthrough Vide**o (1 hour): [YouTube](https://youtu.be/IJm--UbuSaM)
💡 Topics Covered:
1. Python Basics
* Syntax, variables, loops, and conditionals.
2. Working with Collections
* Lists, dictionaries, tuples, and sets.
3. File Handling
* Reading/writing CSV, JSON, Excel, and Parquet files.
4. Data Processing
* Cleaning, aggregating, and analyzing data with pandas and NumPy.
5. Numerical Computing
* Advanced operations with NumPy for efficient computation.
6. Date and Time Manipulations
* Parsing, formatting, and managing date time data.
7. APIs and External Data Connections
* Fetching data securely and integrating APIs into pipelines.
8. Object-Oriented Programming (OOP)
* Designing modular and reusable code.
9. Building ETL Pipelines
* End-to-end workflows for extracting, transforming, and loading data.
10. Data Quality and Testing
* Using `unittest`, `great_expectations`, and `flake8` to ensure clean and robust code.
1. Creating and Deploying Python Packages
* Structuring, building, and distributing Python
/r/Python
https://redd.it/1gu3her
Google
Python for Data Engineers - Analytics Vector.ipynb
Colab notebook
For those of you that purchase templates online, is there a better way to edit the files to run it in flask?
I purchased a Bootstrap template online today and started to hack away at it to make it work with a website I am building with Flask. This involves rearranging files, folders and more annoyingly, going through all the links in the HTML that refer to images, css, js, and other HTML pages in the project and editing them with the
Is there a better way to do this or is this just one of those annoying initial setup things that I need to do manually?
/r/flask
https://redd.it/1gtv56b
I purchased a Bootstrap template online today and started to hack away at it to make it work with a website I am building with Flask. This involves rearranging files, folders and more annoyingly, going through all the links in the HTML that refer to images, css, js, and other HTML pages in the project and editing them with the
{{ url_for('static', filename='...'}} code Jinja expects. Is there a better way to do this or is this just one of those annoying initial setup things that I need to do manually?
/r/flask
https://redd.it/1gtv56b
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Support Python: Our End-of-Year Fundraiser with PyCharm Discount is live
Our end of year fundraiser and membership drive has launched! There are 3 ways to join in to support Python and the PSF:
- 30% off @PyCharm
from JetBrains
- Donate directly
- Become a member
Learn more
Python empowers you to build amazing tools, build/grow companies, and secure jobs—all for free! Consider giving back today.
/r/Python
https://redd.it/1gu7g70
Our end of year fundraiser and membership drive has launched! There are 3 ways to join in to support Python and the PSF:
- 30% off @PyCharm
from JetBrains
- Donate directly
- Become a member
Learn more
Python empowers you to build amazing tools, build/grow companies, and secure jobs—all for free! Consider giving back today.
/r/Python
https://redd.it/1gu7g70
JetBrains: Developer Tools for Professionals and Teams
Support Python With JetBrains
Purchase PyCharm at 30% OFF, and have all the proceeds of your purchase donated to support Python.
difficulty with flask-login
I'm a beginner in Flask, and I think I didn't find this information in the documentation, or I may not have understood/read it correctly.
But, I'm having the following problem:
I can log my user into my application, everything works perfectly, but if I type the /login page again, it is accessed, even though the user is already authenticated. Is there a way that when the user is already logged in, the login page is not accessed and redirects to the home page, for example?
I would be very grateful to anyone who can help.
/r/flask
https://redd.it/1gtqpy0
I'm a beginner in Flask, and I think I didn't find this information in the documentation, or I may not have understood/read it correctly.
But, I'm having the following problem:
I can log my user into my application, everything works perfectly, but if I type the /login page again, it is accessed, even though the user is already authenticated. Is there a way that when the user is already logged in, the login page is not accessed and redirects to the home page, for example?
I would be very grateful to anyone who can help.
/r/flask
https://redd.it/1gtqpy0
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
D Simple Questions Thread
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the noscript.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/1gtgnk8
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the noscript.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/1gtgnk8
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Basic Components: Server-Side UI Components for Python Web Apps (Feedback Appreciated)
Hi everyone! 👋
I'm excited to share a project I've been working on called Basic Components, which ports shadcn/ui component to the Python/Jinja.
# What My Project Does
Basic Components is a collection of reusable, server-side UI components built with JinjaX, htmx, and Alpine.js and Tailwind CSS. It's a port of shadcn/ui to Python/Jinja. It allows you to build dynamic, responsive web applications using Python web frameworks like FastAPI, Django, and Flask.
Key Features:
Copy/Paste Components: No package to install; simply copy the components you need into your project.
Full Customization: Complete control over the components to modify and extend as needed.
Tailwind CSS Styling: Styled using Tailwind CSS utility classes for consistent and rapid UI development.
Accessibility-First Design: Components are built with accessibility in mind, based on shadcn/ui.
Dark Mode Support: Built-in theming with light and dark modes.
Markup Compatibility: The component markup is the same as in shadcn/ui, making it easy to adapt and integrate.
# Target Audience
This project is intended for Python web developers who prefer a server-first architecture and want to build modern, interactive web applications without relying heavily on client-side JavaScript frameworks.
# Comparison to Existing Alternatives
While there are many frontend component libraries available for JavaScript frameworks like React or Vue,
/r/Python
https://redd.it/1gue0s5
Hi everyone! 👋
I'm excited to share a project I've been working on called Basic Components, which ports shadcn/ui component to the Python/Jinja.
# What My Project Does
Basic Components is a collection of reusable, server-side UI components built with JinjaX, htmx, and Alpine.js and Tailwind CSS. It's a port of shadcn/ui to Python/Jinja. It allows you to build dynamic, responsive web applications using Python web frameworks like FastAPI, Django, and Flask.
Key Features:
Copy/Paste Components: No package to install; simply copy the components you need into your project.
Full Customization: Complete control over the components to modify and extend as needed.
Tailwind CSS Styling: Styled using Tailwind CSS utility classes for consistent and rapid UI development.
Accessibility-First Design: Components are built with accessibility in mind, based on shadcn/ui.
Dark Mode Support: Built-in theming with light and dark modes.
Markup Compatibility: The component markup is the same as in shadcn/ui, making it easy to adapt and integrate.
# Target Audience
This project is intended for Python web developers who prefer a server-first architecture and want to build modern, interactive web applications without relying heavily on client-side JavaScript frameworks.
# Comparison to Existing Alternatives
While there are many frontend component libraries available for JavaScript frameworks like React or Vue,
/r/Python
https://redd.it/1gue0s5
jinjax.scaletti.dev
Welcome | JinjaX Documentation
Super components powers for your Jinja templates
If you use uv, what are your use cases for uvx?
I really love
I also really like the
But I it never really clicked for me when I would use
Currently I am on my way to release v0.4.0 of kanban-tui with multi board support and board-individual columns. I develop those features in a new branch and just discovered that you can use something like:
to install the current development status from a custom branch (or even commit)
within seconds. A great way to quickly share the current progress of your work with friends or use your tool on your system already without creating a new release yet.
I am curious to hear, what are your use cases for
/r/Python
https://redd.it/1guf2fh
I really love
uv as my new All-In-One tool for python project management. I also really like the
uv tool functionality for tools I regularly use like Harlequin or my kanban/tasks apps kanban-python and more lately the less minimal kanban-tui.But I it never really clicked for me when I would use
uvx which basically installs a tool temporary and after usage removes it again (though still cached, so future uses go faster).Currently I am on my way to release v0.4.0 of kanban-tui with multi board support and board-individual columns. I develop those features in a new branch and just discovered that you can use something like:
uvx --from git+https://github.com/Zaloog/kanban-tui@lg/independent-board-columns ktui demo
to install the current development status from a custom branch (or even commit)
within seconds. A great way to quickly share the current progress of your work with friends or use your tool on your system already without creating a new release yet.
I am curious to hear, what are your use cases for
uvx, and what are your favourite tools to use with it?/r/Python
https://redd.it/1guf2fh
GitHub
GitHub - Zaloog/kanban-tui: Task Manager with a TUI written in Python
Task Manager with a TUI written in Python. Contribute to Zaloog/kanban-tui development by creating an account on GitHub.
On Ajax what is the prefer way to get the CSRFTOEKN?
const csrfToken1 = document.cookie
const csrfToken2 = document.getElementsByName('csrfmiddlewaretoken')
From top snippet, what is the convention/prefer way to get the csrf\token? Any suggestion will be greatly appreciated. Thank you.
/r/djangolearning
https://redd.it/1guni1v
const csrfToken1 = document.cookie
const csrfToken2 = document.getElementsByName('csrfmiddlewaretoken')
From top snippet, what is the convention/prefer way to get the csrf\token? Any suggestion will be greatly appreciated. Thank you.
/r/djangolearning
https://redd.it/1guni1v
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/1gujmbz
# 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/1gujmbz
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. | 413614 members
Using Python's pathlib module
I've written a hybrid "why pathlib" and "pathlib cheat sheet" post: [Python's pathlib module\](https://www.pythonmorsels.com/pathlib-module/).
I see this resource as a living document, so feedback is very welcome.
/r/Python
https://redd.it/1guhphv
I've written a hybrid "why pathlib" and "pathlib cheat sheet" post: [Python's pathlib module\](https://www.pythonmorsels.com/pathlib-module/).
I see this resource as a living document, so feedback is very welcome.
/r/Python
https://redd.it/1guhphv
Pythonmorsels
Python's pathlib module
Python's pathlib module is the tool to use for working with file paths. See pathlib quick reference tables and examples.
I'm pretty lost on how to setup a full app from scratch.
I work at a software house, Im a junior developer (5months of experience). My first project had 2 seniors and plus 2 juniors besides me, I did all kind of tasks most of it creating views to do CRUD on django. My perfomance overall was pretty good, and when things got reallly ugly the senior always came in to solve it (for example we had a lot lot lot of problems with migrations, ppl running migrations on productions instead of local DB and etc.)
Given this context, whats happening now: I'm working at another project for this company, its a project from scratch and whats getting me desperate its I'm the only developer on the project. The PO of the project always says that his got react skills and always can help me on frontend ( I wont even speak how useless this help is, and every time he tries to help we got a new lib installed on the project that I have to study, so this is happening even tho in the start I tried to convice to use vanila JS since its a simple project but nah, we using react with a list of 10+ libs and
/r/django
https://redd.it/1gudped
I work at a software house, Im a junior developer (5months of experience). My first project had 2 seniors and plus 2 juniors besides me, I did all kind of tasks most of it creating views to do CRUD on django. My perfomance overall was pretty good, and when things got reallly ugly the senior always came in to solve it (for example we had a lot lot lot of problems with migrations, ppl running migrations on productions instead of local DB and etc.)
Given this context, whats happening now: I'm working at another project for this company, its a project from scratch and whats getting me desperate its I'm the only developer on the project. The PO of the project always says that his got react skills and always can help me on frontend ( I wont even speak how useless this help is, and every time he tries to help we got a new lib installed on the project that I have to study, so this is happening even tho in the start I tried to convice to use vanila JS since its a simple project but nah, we using react with a list of 10+ libs and
/r/django
https://redd.it/1gudped
Reddit
From the django community on Reddit
Explore this post and more from the django community
D What’s the most surprising or counterintuitive insight you’ve learned about machine learning recently?
ML often challenges assumptions. What’s something you learned that flipped your understanding or made you rethink a concept?
/r/MachineLearning
https://redd.it/1gujfj2
ML often challenges assumptions. What’s something you learned that flipped your understanding or made you rethink a concept?
/r/MachineLearning
https://redd.it/1gujfj2
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Rewriting 4,000 lines of Python to migrate to Quart (async Flask)
Talk Python rewritten in Quart (async Flask)
Here's a massive write up of why over at Talk Python we rewrote our website and why we chose Quart (async Flask). Lots of lessons here if you're choosing a framework for a project or considering rewriting your own.
/r/Python
https://redd.it/1gulzjt
Talk Python rewritten in Quart (async Flask)
Here's a massive write up of why over at Talk Python we rewrote our website and why we chose Quart (async Flask). Lots of lessons here if you're choosing a framework for a project or considering rewriting your own.
/r/Python
https://redd.it/1gulzjt
talkpython.fm
Talk Python rewritten in Quart (async Flask)
Are you considering migrating from one Python web framework to another? This article describes our recent migration from Pyramid to Quart and from synchronous code to code powered by asyncio with async and await. Here why we chose Quart/Flask over the many…