Learn How to Use JSON as a Small Database for Your Py Projects by Building a Hotel Accounting System
This is the first free tutorial designed to help beginners learn how to use JSON to create a simple database for their projects.
It also prepares developers for the next two tutorials in our "Learn by Build" series, where we'll cover how to use the
and by time we will add extra more depth projects to enhance your pythonic skills
find tutorial in github https://github.com/rankap/learn\_by\_build/tree/main/tut\_1\_learn\_json
/r/Python
https://redd.it/1fvmvlj
This is the first free tutorial designed to help beginners learn how to use JSON to create a simple database for their projects.
It also prepares developers for the next two tutorials in our "Learn by Build" series, where we'll cover how to use the
requests library, build asynchronous code, and work with threads.and by time we will add extra more depth projects to enhance your pythonic skills
find tutorial in github https://github.com/rankap/learn\_by\_build/tree/main/tut\_1\_learn\_json
/r/Python
https://redd.it/1fvmvlj
GitHub
learn_by_build/tut_1_learn_json at main · rankap/learn_by_build
learn python by build projects. Contribute to rankap/learn_by_build development by creating an account on GitHub.
Lazywarden: Automate your Bitwarden Backups and Imports with Total Security! ☁️🔐🖥️
What My Project Does
A few weeks ago, I launched Lazywarden, a tool designed to make life easier for those of us who use Bitwarden or Vaultwarden. It automates the process of backing up and importing passwords, including attachments, in a secure and hassle-free way. You can check it out here: https://github.com/querylab/lazywarden
Target Audience
Anyone who wants to automate backups and imports of passwords securely and efficiently, while using Bitwarden or Vaultwarden.
Comparison
While Bitwarden is excellent for managing passwords, automating processes like cloud backups, integrating with other services, or securing your data locally can be tricky. Lazywarden simplifies all this with a noscript that does the heavy lifting for you. 😎
I'm open to any feedback, suggestions, or ideas for improvement. Feel free to share your thoughts or contribute to the project! 🤝
Thanks for reading, and I hope you find Lazywarden as useful as I do. 💻🔑
/r/Python
https://redd.it/1fvw58w
What My Project Does
A few weeks ago, I launched Lazywarden, a tool designed to make life easier for those of us who use Bitwarden or Vaultwarden. It automates the process of backing up and importing passwords, including attachments, in a secure and hassle-free way. You can check it out here: https://github.com/querylab/lazywarden
Target Audience
Anyone who wants to automate backups and imports of passwords securely and efficiently, while using Bitwarden or Vaultwarden.
Comparison
While Bitwarden is excellent for managing passwords, automating processes like cloud backups, integrating with other services, or securing your data locally can be tricky. Lazywarden simplifies all this with a noscript that does the heavy lifting for you. 😎
I'm open to any feedback, suggestions, or ideas for improvement. Feel free to share your thoughts or contribute to the project! 🤝
Thanks for reading, and I hope you find Lazywarden as useful as I do. 💻🔑
/r/Python
https://redd.it/1fvw58w
GitHub
GitHub - querylab/lazywarden: Automatic Bitwarden Backup
Automatic Bitwarden Backup. Contribute to querylab/lazywarden development by creating an account on GitHub.
Can someone please tell briefly the difference Flask-Dance (with SQLAlchemy) with and without Flask Security
/r/flask
https://redd.it/1fttz97
/r/flask
https://redd.it/1fttz97
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
R Were RNNs All We Needed?
https://arxiv.org/abs/2410.01201
The authors (including Y. Bengio) propose simplified versions of LSTM and GRU that allow parallel training, and show strong results on some benchmarks.
/r/MachineLearning
https://redd.it/1fvg7qr
https://arxiv.org/abs/2410.01201
The authors (including Y. Bengio) propose simplified versions of LSTM and GRU that allow parallel training, and show strong results on some benchmarks.
/r/MachineLearning
https://redd.it/1fvg7qr
arXiv.org
Were RNNs All We Needed?
The introduction of Transformers in 2017 reshaped the landscape of deep learning. Originally proposed for sequence modelling, Transformers have since achieved widespread success across various...
What does everyone use for Django emails?
Hi, I'm wondering what everyone uses for email templates and sending. I'm a hobbist but have a couple random sites, one with 800 users. I've always used the Django emails and setup templates for them within Django. I know this is my skill level but they always look basic and blah. Is there a better way?
/r/django
https://redd.it/1fvzdgt
Hi, I'm wondering what everyone uses for email templates and sending. I'm a hobbist but have a couple random sites, one with 800 users. I've always used the Django emails and setup templates for them within Django. I know this is my skill level but they always look basic and blah. Is there a better way?
/r/django
https://redd.it/1fvzdgt
Reddit
From the django community on Reddit
Explore this post and more from the django community
deployment with nginx and gunicorm
Hello there,
Should I deploy my flask application with gunicorn, and nginx in the same container?
And for every flask microservice there should be an nginx deployed? like 5 nginx for 5 microservice ?
It feels like kind of antipattern (but what do I know) but recently I came across something like that.
Also, could you share examples of production level deployment, if you know any examples out there
Thanks, and sorry for my bad english, if any mistakes
/r/flask
https://redd.it/1fw45v5
Hello there,
Should I deploy my flask application with gunicorn, and nginx in the same container?
And for every flask microservice there should be an nginx deployed? like 5 nginx for 5 microservice ?
It feels like kind of antipattern (but what do I know) but recently I came across something like that.
Also, could you share examples of production level deployment, if you know any examples out there
Thanks, and sorry for my bad english, if any mistakes
/r/flask
https://redd.it/1fw45v5
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
I never realized how complicated slice assignments are in Python...
I’ve recently been working on a custom mutable sequence type as part of a personal project, and trying to write a
Some parts of slice assignment are obvious or simple. For example, pretty much everyone knows about these cases:
>>> l = 1, 2, 3, 4, 5
>>> l0:3 = 3, 2, 1
>>> l
3, 2, 1, 4, 5
>>> l3:0:-1 = 3, 2, 1
>>> l
1, 2, 3, 4, 5
That’s easy to implement, even if it’s just iterative assignment calls pointing at the right indices. And the same of course works with negative indices too. But then you get stuff like this:
>>> l = 1, 2, 3, 4, 5
>>> l3:6 = 3, 2, 1
>>> l
1, 2, 3, 3, 2, 1
/r/Python
https://redd.it/1fvyu8b
I’ve recently been working on a custom mutable sequence type as part of a personal project, and trying to write a
__setitem__ implementation for it that handles slices the same way that the builtin list type does has been far more complicated than I realized, and left me scratching my head in confusion in a couple of cases.Some parts of slice assignment are obvious or simple. For example, pretty much everyone knows about these cases:
>>> l = 1, 2, 3, 4, 5
>>> l0:3 = 3, 2, 1
>>> l
3, 2, 1, 4, 5
>>> l3:0:-1 = 3, 2, 1
>>> l
1, 2, 3, 4, 5
That’s easy to implement, even if it’s just iterative assignment calls pointing at the right indices. And the same of course works with negative indices too. But then you get stuff like this:
>>> l = 1, 2, 3, 4, 5
>>> l3:6 = 3, 2, 1
>>> l
1, 2, 3, 3, 2, 1
/r/Python
https://redd.it/1fvyu8b
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
What Python feature made you a better developer?
A few years back I learned about dataclasses and, beside using them all the time, I think they made me a better programmer, because they led me to learn more about Python and programming in general.
What is the single Python feature/module that made you better at Python?
/r/Python
https://redd.it/1fwab0s
A few years back I learned about dataclasses and, beside using them all the time, I think they made me a better programmer, because they led me to learn more about Python and programming in general.
What is the single Python feature/module that made you better at Python?
/r/Python
https://redd.it/1fwab0s
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
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/1fwdjon
# 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/1fwdjon
YouTube
Data Structures and Algorithms in Python - Full Course for Beginners
A beginner-friendly introduction to common data structures (linked lists, stacks, queues, graphs) and algorithms (search, sorting, recursion, dynamic programming) in Python. This course will help you prepare for coding interviews and assessments.
🔗 Course…
🔗 Course…
Deploying flask in hostinger
Hi! Is there any way to deploy a flask using hostinger? We are new at deploying that's why it is still confusing in our end. Thank you.
/r/flask
https://redd.it/1fw3j57
Hi! Is there any way to deploy a flask using hostinger? We are new at deploying that's why it is still confusing in our end. Thank you.
/r/flask
https://redd.it/1fw3j57
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Multi tenant framework with row level security
Popular multi tenant frameworks seems to do with seperated databases or schemas. There are recent Postgres advances in row level security, so just want to use tenant_id at row level.
Are there any frameworks that implements multi tenant at the row level?
/r/django
https://redd.it/1fwez1p
Popular multi tenant frameworks seems to do with seperated databases or schemas. There are recent Postgres advances in row level security, so just want to use tenant_id at row level.
Are there any frameworks that implements multi tenant at the row level?
/r/django
https://redd.it/1fwez1p
Reddit
From the django community on Reddit
Explore this post and more from the django community
3.13 JIT compiler VS Numba
Python 3.13 comes with a new Just in time compiler (JIT). On that I have a few questions/thoughts on it.
1. About CPython3.13 JIT I generally hear:
we should not expect dramatic speed improvements
This is just the first step for Python to enable optimizations not possible now, but is the groundwork for better optimizations in the future
2. How does this JIT in the short term or long term compare with Numba?
3. Are the use cases disjoint or a little overlap or a lot overlap?
4. Would it make sense for CPython JIT and Numba JIT to be used together?
Revelant links:
Cpython JIT:
https://github.com/python/cpython/blob/main/Tools/jit/README.md
Numba Architecture:
https://numba.readthedocs.io/en/stable/developer/architecture.html
What's new Announcement
https://docs.python.org/3.13/whatsnew/3.13.html#an-experimental-just-in-time-jit-compiler
/r/Python
https://redd.it/1fwewvg
Python 3.13 comes with a new Just in time compiler (JIT). On that I have a few questions/thoughts on it.
1. About CPython3.13 JIT I generally hear:
we should not expect dramatic speed improvements
This is just the first step for Python to enable optimizations not possible now, but is the groundwork for better optimizations in the future
2. How does this JIT in the short term or long term compare with Numba?
3. Are the use cases disjoint or a little overlap or a lot overlap?
4. Would it make sense for CPython JIT and Numba JIT to be used together?
Revelant links:
Cpython JIT:
https://github.com/python/cpython/blob/main/Tools/jit/README.md
Numba Architecture:
https://numba.readthedocs.io/en/stable/developer/architecture.html
What's new Announcement
https://docs.python.org/3.13/whatsnew/3.13.html#an-experimental-just-in-time-jit-compiler
/r/Python
https://redd.it/1fwewvg
GitHub
cpython/Tools/jit/README.md at main · python/cpython
The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Flask-Mail, HELP: ModuleNotFoundError: No module named 'flask_mail'
My Flask app is working very well in the development environment. Email sending is running correctly, but VSCode keeps marking
/r/flask
https://redd.it/1fwgc51
My Flask app is working very well in the development environment. Email sending is running correctly, but VSCode keeps marking
flask_mail as 'unable to import'. Finally, today I implemented tests for my application using pytest, and the only point that fails is precisely the import of Flask-Mail in my extensions.py. Can someone help me?/r/flask
https://redd.it/1fwgc51
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Any better way between Javanoscript and Django to communicate with each other?
I am designing a front-end for an API of mine. As of now the only way for the Javanoscript and Django to communicate is from cookies.
For example, If a sign in attempt is made with incorrect credentials, the server receives the sign in form, makes a POST request to the API, the API returns an error message that the credentials are incorrect, the Django server makes a temporary cookie named "errorMessage" and redirects the user to the Sign In page again. The cookie then is read and deleted by the Javanoscript to initiate an alert() function with the error message to let the user know that the credentials were wrong.
Is there any better, simple or efficient way?
/r/django
https://redd.it/1fwkld2
I am designing a front-end for an API of mine. As of now the only way for the Javanoscript and Django to communicate is from cookies.
For example, If a sign in attempt is made with incorrect credentials, the server receives the sign in form, makes a POST request to the API, the API returns an error message that the credentials are incorrect, the Django server makes a temporary cookie named "errorMessage" and redirects the user to the Sign In page again. The cookie then is read and deleted by the Javanoscript to initiate an alert() function with the error message to let the user know that the credentials were wrong.
Is there any better, simple or efficient way?
/r/django
https://redd.it/1fwkld2
Reddit
From the django community on Reddit
Explore this post and more from the django community
R Meta releases SOTA video generation and audio generation that's less than 40 billion parameters.
Today, Meta released SOTA set of text-to-video models. These are small enough to potentially run locally. Doesn't seem like they plan on releasing the code or dataset but they give virtually all details of the model. The fact that this model is this coherent already really points to how much quicker development is occurring.
https://ai.meta.com/research/movie-gen/?utm\_source=linkedin&utm\_medium=organic\_social&utm\_content=video&utm\_campaign=moviegen
This suite of models (Movie Gen) contains many model architectures but it's very interesting to see training by synchronization with sounds and pictures. That actually makes a lot of sense from a training POV.
https://preview.redd.it/047ddxdb7vsd1.png?width=1116&format=png&auto=webp&s=a7cd628a8b2dde9824b27983a430217123c297d8
/r/MachineLearning
https://redd.it/1fwic4m
Today, Meta released SOTA set of text-to-video models. These are small enough to potentially run locally. Doesn't seem like they plan on releasing the code or dataset but they give virtually all details of the model. The fact that this model is this coherent already really points to how much quicker development is occurring.
https://ai.meta.com/research/movie-gen/?utm\_source=linkedin&utm\_medium=organic\_social&utm\_content=video&utm\_campaign=moviegen
This suite of models (Movie Gen) contains many model architectures but it's very interesting to see training by synchronization with sounds and pictures. That actually makes a lot of sense from a training POV.
https://preview.redd.it/047ddxdb7vsd1.png?width=1116&format=png&auto=webp&s=a7cd628a8b2dde9824b27983a430217123c297d8
/r/MachineLearning
https://redd.it/1fwic4m
AI at Meta
Meta Movie Gen
Meta Movie Gen is our latest research breakthrough that allows you to use simple text inputs to create videos and sounds, edit existing videos or transform your personal image into a unique video.
Segregate By Date: Sort your photos into year and month folders based on filename and EXIF metadata
What My Project Does
This Python code I developed can read a folder containing images and can sort them into folders- parent folder name would be "2024", "2023", etc and child folders would be "Jan", "Feb", etc. The program can read files no matter how they are nested or how many sub-folders there are or where they came from. For instance, if we have 100 files directly in a folder with normal names, 50 files with timestamps in the filename (like IMG_20210912_120000.jpg), 100 files already sorted into years but not month, 50 files already fully sorted into month and year. Once the program is run, all 300 files will be properly sorted into year and month folders.
You can also set the input folder as a new set of images and the output folder a previous output of this program, and the output folder will be modified in place to generate a new fully sorted set of photos (in other words, previous results are implicitly merged with the new one).
Target Audience
1. People or families who regularly take pictures on multiple devices, later wanting to store them all in one place, perhaps to maintain a long-term memories album, or to
/r/Python
https://redd.it/1fwo463
What My Project Does
This Python code I developed can read a folder containing images and can sort them into folders- parent folder name would be "2024", "2023", etc and child folders would be "Jan", "Feb", etc. The program can read files no matter how they are nested or how many sub-folders there are or where they came from. For instance, if we have 100 files directly in a folder with normal names, 50 files with timestamps in the filename (like IMG_20210912_120000.jpg), 100 files already sorted into years but not month, 50 files already fully sorted into month and year. Once the program is run, all 300 files will be properly sorted into year and month folders.
You can also set the input folder as a new set of images and the output folder a previous output of this program, and the output folder will be modified in place to generate a new fully sorted set of photos (in other words, previous results are implicitly merged with the new one).
Target Audience
1. People or families who regularly take pictures on multiple devices, later wanting to store them all in one place, perhaps to maintain a long-term memories album, or to
/r/Python
https://redd.it/1fwo463
Reddit
From the Python community on Reddit: Segregate By Date: Sort your photos into year and month folders based on filename and EXIF…
Explore this post and more from the Python community
I made a dumb simple GMAIL client... only for sending emails from gmail.
I wanted to automatically send emails from my gmail account but didn't want to go through the whole Google Cloud Platform / etc. setup... this just requires an app passcode for your gmail.
(note: I'm not great at packaging so currently only works from GitHub install)
# What my project does:
Lets you use your gmail and send it in Python without all the GCP setup.
# Target audience:
Simpletons like myself.
# Comparison:
I couldn't find an easy way to use Python gmail without all the complicated Google Cloud Platform jazz... so if you're only wanting to automatically send emails with your gmail account, this is for you!
Let me know what you guys think! Look at the source, it's pretty simple to use haha.
https://github.com/zackplauche/python-gmail
/r/Python
https://redd.it/1fvxpkj
I wanted to automatically send emails from my gmail account but didn't want to go through the whole Google Cloud Platform / etc. setup... this just requires an app passcode for your gmail.
(note: I'm not great at packaging so currently only works from GitHub install)
# What my project does:
Lets you use your gmail and send it in Python without all the GCP setup.
# Target audience:
Simpletons like myself.
# Comparison:
I couldn't find an easy way to use Python gmail without all the complicated Google Cloud Platform jazz... so if you're only wanting to automatically send emails with your gmail account, this is for you!
Let me know what you guys think! Look at the source, it's pretty simple to use haha.
https://github.com/zackplauche/python-gmail
/r/Python
https://redd.it/1fvxpkj
GitHub
GitHub - ZackPlauche/python-gmail
Contribute to ZackPlauche/python-gmail development by creating an account on GitHub.
ovld - fast and featureful multiple dispatch
## What My Project Does
[ovld](https://github.com/breuleux/ovld) implements multiple dispatch in Python. This lets you define multiple versions of the same function with different type signatures.
For example:
import math
from typing import Literal
from ovld import ovld
@ovld
def div(x: int, y: int):
return x / y
@ovld
def div(x: str, y: str):
return f"{x}/{y}"
@ovld
def div(x: int, y: Literal[0]):
return math.inf
assert div(8, 2) == 4
assert div("/home", "user") == "/home/user"
assert div(10, 0) == math.inf
## Target Audience
Ovld is pretty generally applicable: multiple dispatch is a central feature of several programming languages, e.g. Julia. I find it particularly useful when doing work on complex heterogeneous data structures, for instance walking an AST, serializing/deserializing data, generating HTML representations of data, etc.
## Features
* Wide range of supported annotations: normal
/r/Python
https://redd.it/1fwdgal
## What My Project Does
[ovld](https://github.com/breuleux/ovld) implements multiple dispatch in Python. This lets you define multiple versions of the same function with different type signatures.
For example:
import math
from typing import Literal
from ovld import ovld
@ovld
def div(x: int, y: int):
return x / y
@ovld
def div(x: str, y: str):
return f"{x}/{y}"
@ovld
def div(x: int, y: Literal[0]):
return math.inf
assert div(8, 2) == 4
assert div("/home", "user") == "/home/user"
assert div(10, 0) == math.inf
## Target Audience
Ovld is pretty generally applicable: multiple dispatch is a central feature of several programming languages, e.g. Julia. I find it particularly useful when doing work on complex heterogeneous data structures, for instance walking an AST, serializing/deserializing data, generating HTML representations of data, etc.
## Features
* Wide range of supported annotations: normal
/r/Python
https://redd.it/1fwdgal
GitHub
GitHub - breuleux/ovld: Advanced multiple dispatch for Python functions
Advanced multiple dispatch for Python functions. Contribute to breuleux/ovld development by creating an account on GitHub.
Currently Seeking Entry/Junior Level Developer Work: How Does My Resume Look?
I'm actively looking for entry-level or junior developer positions and would love feedback on my resume. If you're a seasoned developer or someone involved in hiring junior devs, your insights would be invaluable!. Here is the resume at [Google Drive](https://docs.google.com/document/d/1k2EtRjwHxQBobh2tMVV5ZCxaGHZHUPGGgb7oVDQMDDM/edit?usp=sharing).
* What do you think about the structure and content?
* Are there any areas for improvement?
* Does it effectively showcase my skills and projects for this level?
Thank you in advance for your help!
/r/djangolearning
https://redd.it/1fwqg36
I'm actively looking for entry-level or junior developer positions and would love feedback on my resume. If you're a seasoned developer or someone involved in hiring junior devs, your insights would be invaluable!. Here is the resume at [Google Drive](https://docs.google.com/document/d/1k2EtRjwHxQBobh2tMVV5ZCxaGHZHUPGGgb7oVDQMDDM/edit?usp=sharing).
* What do you think about the structure and content?
* Are there any areas for improvement?
* Does it effectively showcase my skills and projects for this level?
Thank you in advance for your help!
/r/djangolearning
https://redd.it/1fwqg36
Google Docs
new_web_dev_resume
ERIC ANDERSON • Python Django React Web Developer +63-969-352-7097 | shinhosuck1973@gmail.com | Portfolio 96 Imelda Village | Baguio City | Philippines 2600 In early 2019, while managing my restaurant, a customer introduced me to Python programming. Intrigued…
Free Python Learning with Literal Baby Steps
I was using Coddy, but then I ran into a paywall and couldn't execute any more functions unless I waited a day. I'm looking for something that helps me to repeat the same things over and over to memorize syntax and learn.
For example, SQL Climber has been wonderful with very slowly learning SQL and repeating the same commands over and over for me to memorize them, and very slowly progressing to more concepts. I'm looking for something similar, but with Python; and completely free. I tried Exercism, but I didn't find it very accessible. Confusing to navigate, and I got stuck on the first main exercise of "cooking a lasagne" because it didn't explain very well what I'm putting in and where and why. I also tried Hack in Science but it progressed way too fast and was more focused on the problem solving aspect, when all I want is learning about the syntax and repeating to memorize it.
I also want something with an online editor that checks my work and then moves on if it's correct (not a book or online book).
/r/Python
https://redd.it/1fwun6b
I was using Coddy, but then I ran into a paywall and couldn't execute any more functions unless I waited a day. I'm looking for something that helps me to repeat the same things over and over to memorize syntax and learn.
For example, SQL Climber has been wonderful with very slowly learning SQL and repeating the same commands over and over for me to memorize them, and very slowly progressing to more concepts. I'm looking for something similar, but with Python; and completely free. I tried Exercism, but I didn't find it very accessible. Confusing to navigate, and I got stuck on the first main exercise of "cooking a lasagne" because it didn't explain very well what I'm putting in and where and why. I also tried Hack in Science but it progressed way too fast and was more focused on the problem solving aspect, when all I want is learning about the syntax and repeating to memorize it.
I also want something with an online editor that checks my work and then moves on if it's correct (not a book or online book).
/r/Python
https://redd.it/1fwun6b
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Server Side rendered Datatables with Django
Just wrapped up a project where I had to handle a massive table with DataTables and Django. Thought I'd share my experience and maybe save someone else a headache.
The challenge: Display thousands of records with dynamic columns, sorting, and filtering - all server-side. Oh, and it needed to be blazing fast.
Here's what worked for me:
1. Custom Django view to process DataTables requests
2. Dynamic column generation based on user permissions
3. Efficient database queries with select\_related()
4. Complex sorting and filtering logic handled server-side
5. Pagination to keep things snappy
The trickiest part was definitely the dynamic ordering. I ended up writing a function to translate DataTables' sorting parameters into Django ORM-friendly format. It was a pain to debug, but works like a charm now.
Performance-wise, it's holding up well. Tables load quickly, and sorting/filtering feels smooth.
Key takeaways:
* Server-side processing is crucial for large datasets
* Plan your dynamic columns carefully
* Efficient querying is your best friend
i also wrote a blog about this - [https://selftaughtdev.hashnode.dev/mastering-complex-datatables-with-django-a-deep-dive-into-server-side-processing](https://selftaughtdev.hashnode.dev/mastering-complex-datatables-with-django-a-deep-dive-into-server-side-processing)
/r/django
https://redd.it/1fwqlwk
Just wrapped up a project where I had to handle a massive table with DataTables and Django. Thought I'd share my experience and maybe save someone else a headache.
The challenge: Display thousands of records with dynamic columns, sorting, and filtering - all server-side. Oh, and it needed to be blazing fast.
Here's what worked for me:
1. Custom Django view to process DataTables requests
2. Dynamic column generation based on user permissions
3. Efficient database queries with select\_related()
4. Complex sorting and filtering logic handled server-side
5. Pagination to keep things snappy
The trickiest part was definitely the dynamic ordering. I ended up writing a function to translate DataTables' sorting parameters into Django ORM-friendly format. It was a pain to debug, but works like a charm now.
Performance-wise, it's holding up well. Tables load quickly, and sorting/filtering feels smooth.
Key takeaways:
* Server-side processing is crucial for large datasets
* Plan your dynamic columns carefully
* Efficient querying is your best friend
i also wrote a blog about this - [https://selftaughtdev.hashnode.dev/mastering-complex-datatables-with-django-a-deep-dive-into-server-side-processing](https://selftaughtdev.hashnode.dev/mastering-complex-datatables-with-django-a-deep-dive-into-server-side-processing)
/r/django
https://redd.it/1fwqlwk
My Python Django Blog
Mastering Complex DataTables with Django: A Deep Dive into Server-Side Processing
Hey fellow Django enthusiasts! Today, I'm excited to share a recent challenge I tackled involving Django and DataTables. This one's a bit complex, so grab your favorite caffeinated beverage and let's dive in!
but first, here is a screencast of how it...
but first, here is a screencast of how it...