Multiple differents models with repetitive fields in DRF API.
I have multiple models with many repetitive fields. I'm planning to have different React forms to populate them.
What is the best path to follow; inheritance or composition? I have followed Claude/ChatGPT tutorials but everytime I get a new blocker some steps ahead.
class House(models.Model):
# Repetitive fields
class Apartment(models.Model):
# Repetitive fields to House model
# plus some differente fields
class Land(models.Model):
# Repetitive fields to House
# plus some differente fields
/r/djangolearning
https://redd.it/1nnboj6
I have multiple models with many repetitive fields. I'm planning to have different React forms to populate them.
What is the best path to follow; inheritance or composition? I have followed Claude/ChatGPT tutorials but everytime I get a new blocker some steps ahead.
class House(models.Model):
# Repetitive fields
class Apartment(models.Model):
# Repetitive fields to House model
# plus some differente fields
class Land(models.Model):
# Repetitive fields to House
# plus some differente fields
/r/djangolearning
https://redd.it/1nnboj6
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
P Give me your one line of advice of machine learning code, that you have learned over years of hands on experience.
Mine is "always balance the dataset using SMOTE, that will drastically increase the precision, recall, f1 etc"
/r/MachineLearning
https://redd.it/1nqtiad
Mine is "always balance the dataset using SMOTE, that will drastically increase the precision, recall, f1 etc"
/r/MachineLearning
https://redd.it/1nqtiad
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Error during cookie-cutter-django generation
today i wanted to start new project but i get this error every time (using pip and uv install uninstall). help:
ERROR: error during connect: Head "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/_ping": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
Error building Docker image: Command '['docker', 'build', '-t', 'cookiecutter-django-uv-runner:latest', '-f', 'compose\\\\local\\\\uv\\\\Dockerfile', '-q', '.'\]' returned non-zero exit status 1.
Installing python dependencies using uv...
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
/r/django
https://redd.it/1nqx7w8
today i wanted to start new project but i get this error every time (using pip and uv install uninstall). help:
ERROR: error during connect: Head "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/_ping": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
Error building Docker image: Command '['docker', 'build', '-t', 'cookiecutter-django-uv-runner:latest', '-f', 'compose\\\\local\\\\uv\\\\Dockerfile', '-q', '.'\]' returned non-zero exit status 1.
Installing python dependencies using uv...
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
/r/django
https://redd.it/1nqx7w8
Reddit
From the django community on Reddit
Explore this post and more from the django community
Back to Django after 4 years with FastAPI – what’s the standard for APIs today?
Hey everyone,
I’m coming back to Django after about 4 years working mostly with FastAPI, and I’m trying to catch up with what’s considered “standard” in the Django ecosystem nowadays for building backends and APIs.
From what I see, Django REST Framework (DRF) is still very widely used and seems to remain the go-to choice for REST APIs. At the same time, I’ve noticed Django Ninja popping up as a modern alternative, especially with its FastAPI-like syntax and type hints.
For those of you actively working with Django today:
* Do you still consider DRF the default standard, or is Ninja gaining real adoption in production projects?
* What’s your experience in terms of developer productivity, maintainability, and community support between DRF and Ninja?
* Would you recommend sticking with DRF for long-term stability or trying out Ninja for new projects?
Curious to hear about your experiences and suggestions!
/r/django
https://redd.it/1nr32uj
Hey everyone,
I’m coming back to Django after about 4 years working mostly with FastAPI, and I’m trying to catch up with what’s considered “standard” in the Django ecosystem nowadays for building backends and APIs.
From what I see, Django REST Framework (DRF) is still very widely used and seems to remain the go-to choice for REST APIs. At the same time, I’ve noticed Django Ninja popping up as a modern alternative, especially with its FastAPI-like syntax and type hints.
For those of you actively working with Django today:
* Do you still consider DRF the default standard, or is Ninja gaining real adoption in production projects?
* What’s your experience in terms of developer productivity, maintainability, and community support between DRF and Ninja?
* Would you recommend sticking with DRF for long-term stability or trying out Ninja for new projects?
Curious to hear about your experiences and suggestions!
/r/django
https://redd.it/1nr32uj
Reddit
From the django community on Reddit
Explore this post and more from the django community
Proffessional Django Developer
Anyone intrested in collaborating in a django project using databases, docker, Nginx ,redis etc reach out mahn im kinda looking forward to doing something interesting even if its free i don mind
/r/django
https://redd.it/1nqt5kt
Anyone intrested in collaborating in a django project using databases, docker, Nginx ,redis etc reach out mahn im kinda looking forward to doing something interesting even if its free i don mind
/r/django
https://redd.it/1nqt5kt
Reddit
From the django community on Reddit
Explore this post and more from the django community
We're hiring Full Stack Developer (On-Site)
We're Hiring: Full Stack Engineer (Onsite - Lahore)
Location: Gulberg III, Lahore(Onsite)
Experience: 1-2 years
Key Skills:
Django (Python)
ReactiS
Database knowledge
REST API development
Requirements:
1-2 years of professional Full Stack experience
Strong knowledge of Django & ReactJS
Collaborative mindset for onsite teamwork
Problem-solving attitude & eagerness to learn
If you're passionate about building impactful products in a fast-paced
environment, send your CV to link below.
https://forms.gle/KBu7Moa4GZFuufvE9
https://www.linkedin.com/posts/muhammadusman1993_were-hiring-full-stack-engineer-onsite-activity-7377240542008463361-hw0n?utm_source=social_share_send&utm_medium=android_app&rcm=ACoAABoNHnwBVpOkkxiloXbckwM1O6W_jzpDkMM&utm_campaign=copy_link
/r/django
https://redd.it/1nqvqos
We're Hiring: Full Stack Engineer (Onsite - Lahore)
Location: Gulberg III, Lahore(Onsite)
Experience: 1-2 years
Key Skills:
Django (Python)
ReactiS
Database knowledge
REST API development
Requirements:
1-2 years of professional Full Stack experience
Strong knowledge of Django & ReactJS
Collaborative mindset for onsite teamwork
Problem-solving attitude & eagerness to learn
If you're passionate about building impactful products in a fast-paced
environment, send your CV to link below.
https://forms.gle/KBu7Moa4GZFuufvE9
https://www.linkedin.com/posts/muhammadusman1993_were-hiring-full-stack-engineer-onsite-activity-7377240542008463361-hw0n?utm_source=social_share_send&utm_medium=android_app&rcm=ACoAABoNHnwBVpOkkxiloXbckwM1O6W_jzpDkMM&utm_campaign=copy_link
/r/django
https://redd.it/1nqvqos
R What do you do when your model is training?
As in the question what do you normally do when your model is training and you want to know the results but cannot continue implementing new features because you don't want to change the status and want to know the impact of the currently modifications done to your codebase?
/r/MachineLearning
https://redd.it/1nr1s6g
As in the question what do you normally do when your model is training and you want to know the results but cannot continue implementing new features because you don't want to change the status and want to know the impact of the currently modifications done to your codebase?
/r/MachineLearning
https://redd.it/1nr1s6g
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning 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/1nrgwpe
# 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/1nrgwpe
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
Django Deployment
I build a django application for my cousin for news article of his city.
For now I build basic CRUD operations without DRF.
Can I Deployment it to the production.
If yes, please guide me how I can do that, and which plateform is good to go with.
/r/django
https://redd.it/1nridh0
I build a django application for my cousin for news article of his city.
For now I build basic CRUD operations without DRF.
Can I Deployment it to the production.
If yes, please guide me how I can do that, and which plateform is good to go with.
/r/django
https://redd.it/1nridh0
Reddit
From the django community on Reddit
Explore this post and more from the django community
How to retrieve and display data from an external API
Hey everyone,
So, I am in the process of creating a web app that is going to fetch data from my companies accounting software and display it. After that, the users want to be able to download the invoices that the fetched data reflects. The users will be able to input search parameters and fetching the data is going to be triggered by a submit button. My questions are:
* How do I fetch the data from the external API through django?
* How do I display the results dynamically?
* How do I then allow the users to select the invoices to be downloaded then download the selected invoices?
I already have the API calls I need for the accounting software, I'm just having a hard time wrapping my head around how to properly use those calls within django to retrieve and display the results in django.
I was thinking of using datatables to display the results and have a checkbox for each invoice the user wants to download. But, if there is a better way to do it, I am all ears.
Any help would be greatly appreciated.
/r/djangolearning
https://redd.it/1nrdp69
Hey everyone,
So, I am in the process of creating a web app that is going to fetch data from my companies accounting software and display it. After that, the users want to be able to download the invoices that the fetched data reflects. The users will be able to input search parameters and fetching the data is going to be triggered by a submit button. My questions are:
* How do I fetch the data from the external API through django?
* How do I display the results dynamically?
* How do I then allow the users to select the invoices to be downloaded then download the selected invoices?
I already have the API calls I need for the accounting software, I'm just having a hard time wrapping my head around how to properly use those calls within django to retrieve and display the results in django.
I was thinking of using datatables to display the results and have a checkbox for each invoice the user wants to download. But, if there is a better way to do it, I am all ears.
Any help would be greatly appreciated.
/r/djangolearning
https://redd.it/1nrdp69
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
How pytest fixtures screwed me over
I need to write this of my chest, so to however wants to read this, here is my "fuck my life" moment as a python programmer for this week:
I am happily refactoring a bunch of pytest-testcases for a work project. With this, my team decided to switch to explicitly import fixtures into each test-file instead of relying on them "magically" existing everywhere. Sounds like a good plan, makes things more explicit and easier to understand for newcomers. Initial testing looks good, everything works.
I commit, the full testsuit runs over night. Next day I come back to most of the tests erroring out. Each one with a connection error. "But that's impossible?" We use a scope of session for your connection, there's only one connection for the whole testsuite run. There can be a couple of test running fine and than a bunch who get a connection error. How is the fixture re-connecting? I involve my team, nobody knows what the hecks going on here.
So I start digging into it, pytests docs usually suggest to import once in the
Than I get my Heureka: unter some obscure stack overflow post is a
/r/Python
https://redd.it/1nr2kmn
I need to write this of my chest, so to however wants to read this, here is my "fuck my life" moment as a python programmer for this week:
I am happily refactoring a bunch of pytest-testcases for a work project. With this, my team decided to switch to explicitly import fixtures into each test-file instead of relying on them "magically" existing everywhere. Sounds like a good plan, makes things more explicit and easier to understand for newcomers. Initial testing looks good, everything works.
I commit, the full testsuit runs over night. Next day I come back to most of the tests erroring out. Each one with a connection error. "But that's impossible?" We use a scope of session for your connection, there's only one connection for the whole testsuite run. There can be a couple of test running fine and than a bunch who get a connection error. How is the fixture re-connecting? I involve my team, nobody knows what the hecks going on here.
So I start digging into it, pytests docs usually suggest to import once in the
contest.py but there is nothing suggesting other imports should't work.Than I get my Heureka: unter some obscure stack overflow post is a
/r/Python
https://redd.it/1nr2kmn
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Rock Paper Scissors Arena simulator with tkinter
GitHub link | PyPI link | Explanatory blog post with video
# What My Project Does
Rock Paper Scissors "arena simulator" where different emojis play a game of tag. Emoji converts the "prey" emoji that they catch. You can see an example video in the blog post.
# Target Audience
General Python developers or those interested in simulations
# Comparison
This is not an original project; many such rock-paper-scissors simulators exist. However, I wanted a pure Python package that didn't have external dependencies and was suitable for a "screensaver" or a "simulation experiments" style of execution.
/r/Python
https://redd.it/1nr7ozl
GitHub link | PyPI link | Explanatory blog post with video
# What My Project Does
Rock Paper Scissors "arena simulator" where different emojis play a game of tag. Emoji converts the "prey" emoji that they catch. You can see an example video in the blog post.
# Target Audience
General Python developers or those interested in simulations
# Comparison
This is not an original project; many such rock-paper-scissors simulators exist. However, I wanted a pure Python package that didn't have external dependencies and was suitable for a "screensaver" or a "simulation experiments" style of execution.
/r/Python
https://redd.it/1nr7ozl
GitHub
GitHub - asweigart/rpsarena: A simulation of Rock Paper Scissors units chasing each other in a GUI window. Highly configurable.
A simulation of Rock Paper Scissors units chasing each other in a GUI window. Highly configurable. - asweigart/rpsarena
Would open-sourcing my OCR-to-HTML document reconstruction tool be useful?
Hey everyone
I’m working on a project where we translate scanned documents and we’re using Azure OCR. As you may know, Azure gives back a very abstract JSON like structure (in my case not really usable as is).
I’ve been building a tool that takes this raw OCR output (currently designed for Azure OCR’s format) and reconstructs it into a real document (HTML) that closely matches the original layout. That way, the result can be sent directly into a translation pipeline without tons of manual fixing.
So far, it’s been working really well for my use case.
My question is: would it be useful if I turned this into a Python package that others could use?Even if it starts Azure-specific, do you think people would find value in it?
Would love to hear your thoughts and feedback
/r/Python
https://redd.it/1nrsa7l
Hey everyone
I’m working on a project where we translate scanned documents and we’re using Azure OCR. As you may know, Azure gives back a very abstract JSON like structure (in my case not really usable as is).
I’ve been building a tool that takes this raw OCR output (currently designed for Azure OCR’s format) and reconstructs it into a real document (HTML) that closely matches the original layout. That way, the result can be sent directly into a translation pipeline without tons of manual fixing.
So far, it’s been working really well for my use case.
My question is: would it be useful if I turned this into a Python package that others could use?Even if it starts Azure-specific, do you think people would find value in it?
Would love to hear your thoughts and feedback
/r/Python
https://redd.it/1nrsa7l
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Django 6.0 Background Tasks – do they replace Celery?
I saw that Django 6.0 added Background Tasks as a new feature, and I’m trying to understand how it compares to Celery for managing background jobs like sending emails or cleaning up data.
Can these new Background Tasks actually serve as a replacement for Celery for most use cases, or are there limitations I should know about? For example:
Can typical background jobs now be handled with just Django, without needing to install or manage Celery?
Are there situations where Celery is still the better choice, especially for more complex workflows?
/r/django
https://redd.it/1nrulpd
I saw that Django 6.0 added Background Tasks as a new feature, and I’m trying to understand how it compares to Celery for managing background jobs like sending emails or cleaning up data.
Can these new Background Tasks actually serve as a replacement for Celery for most use cases, or are there limitations I should know about? For example:
Can typical background jobs now be handled with just Django, without needing to install or manage Celery?
Are there situations where Celery is still the better choice, especially for more complex workflows?
/r/django
https://redd.it/1nrulpd
Reddit
From the django community on Reddit
Explore this post and more from the django community
R DynaMix: First dynamical systems foundation model enabling zero-shot forecasting of long-term statistics at #NeurIPS2025
Our dynamical systems foundation model DynaMix was accepted to #NeurIPS2025 with outstanding reviews (6555) – the first model which can zero-shot, w/o any fine-tuning, forecast the long-term behavior of time series from just a short context signal. Test it on #HuggingFace:
https://huggingface.co/spaces/DurstewitzLab/DynaMix
Preprint: https://arxiv.org/abs/2505.13192
Unlike major time series (TS) foundation models (FMs), DynaMix exhibits zero-shot learning of long-term stats of unseen DS, incl. attractor geometry & power spectrum. It does so with only 0.1% of the parameters & >100x faster inference times than the closest competitor, and with an extremely small training corpus of just 34 dynamical systems \- in our minds a paradigm shift in time series foundation models.
https://preview.redd.it/d46h9deagorf1.png?width=1791&format=png&auto=webp&s=7a86714f6e8d7eb269224c0e06ac317f405dfbee
https://preview.redd.it/mullm71cgorf1.png?width=1436&format=png&auto=webp&s=e53055fcc8b1d2f77da88c3896a95d65f3fac893
It even outperforms, or is at least on par with, major TS foundation models like Chronos on forecasting diverse empirical time series, like weather, traffic, or medical data, typically used to train TS FMs. This is surprising, cos DynaMix’ training corpus consists *solely* of simulated limit cycles or chaotic systems, no empirical data at all!
https://preview.redd.it/8twn70e2horf1.png?width=1127&format=png&auto=webp&s=20a7a7721a29d80bc2f01077b6e8684b54ce21ef
And no, it’s neither based on Transformers nor Mamba – it’s a new type of mixture-of-experts architecture based on the recently introduced AL-RNN (https://proceedings.neurips.cc/paper_files/paper/2024/file/40cf27290cc2bd98a428b567ba25075c-Paper-Conference.pdf). It is specifically designed & trained for dynamical systems reconstruction.
https://preview.redd.it/j0njmppkgorf1.png?width=1796&format=png&auto=webp&s=e05e275bf6aeba93fb04e8a288cd0fbac6d8fa84
Remarkably, it not only generalizes zero-shot to
/r/MachineLearning
https://redd.it/1nrqzm7
Our dynamical systems foundation model DynaMix was accepted to #NeurIPS2025 with outstanding reviews (6555) – the first model which can zero-shot, w/o any fine-tuning, forecast the long-term behavior of time series from just a short context signal. Test it on #HuggingFace:
https://huggingface.co/spaces/DurstewitzLab/DynaMix
Preprint: https://arxiv.org/abs/2505.13192
Unlike major time series (TS) foundation models (FMs), DynaMix exhibits zero-shot learning of long-term stats of unseen DS, incl. attractor geometry & power spectrum. It does so with only 0.1% of the parameters & >100x faster inference times than the closest competitor, and with an extremely small training corpus of just 34 dynamical systems \- in our minds a paradigm shift in time series foundation models.
https://preview.redd.it/d46h9deagorf1.png?width=1791&format=png&auto=webp&s=7a86714f6e8d7eb269224c0e06ac317f405dfbee
https://preview.redd.it/mullm71cgorf1.png?width=1436&format=png&auto=webp&s=e53055fcc8b1d2f77da88c3896a95d65f3fac893
It even outperforms, or is at least on par with, major TS foundation models like Chronos on forecasting diverse empirical time series, like weather, traffic, or medical data, typically used to train TS FMs. This is surprising, cos DynaMix’ training corpus consists *solely* of simulated limit cycles or chaotic systems, no empirical data at all!
https://preview.redd.it/8twn70e2horf1.png?width=1127&format=png&auto=webp&s=20a7a7721a29d80bc2f01077b6e8684b54ce21ef
And no, it’s neither based on Transformers nor Mamba – it’s a new type of mixture-of-experts architecture based on the recently introduced AL-RNN (https://proceedings.neurips.cc/paper_files/paper/2024/file/40cf27290cc2bd98a428b567ba25075c-Paper-Conference.pdf). It is specifically designed & trained for dynamical systems reconstruction.
https://preview.redd.it/j0njmppkgorf1.png?width=1796&format=png&auto=webp&s=e05e275bf6aeba93fb04e8a288cd0fbac6d8fa84
Remarkably, it not only generalizes zero-shot to
/r/MachineLearning
https://redd.it/1nrqzm7
huggingface.co
DynaMix - a Hugging Face Space by DurstewitzLab
Upload your time series data in CSV or NPY format and generate future forecasts. Configure the forecast length and settings, then download the results as CSV or NPY.
D Tips for networking at a conference
I'm attending at CoRL 2025 and went to some interesting workshops today. I've heard that networking is very important at conferences, but it is challenging for highly introvert people like me. Do you have any tips?
/r/MachineLearning
https://redd.it/1nrptrp
I'm attending at CoRL 2025 and went to some interesting workshops today. I've heard that networking is very important at conferences, but it is challenging for highly introvert people like me. Do you have any tips?
/r/MachineLearning
https://redd.it/1nrptrp
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Just Finished My First Django Project: A Travel Booking Website! Looking for Suggestions on What to Do Next!
I just finished my first Django project: a travel booking website where users can browse destinations, register/login, and view travel details.(Travello)
So far, the site has:
-Dynamic destination listings
-User authentication
-Responsive design
I’m looking for suggestions on what other project ideas to help me level up my Django skills.
/r/django
https://redd.it/1nrx05b
I just finished my first Django project: a travel booking website where users can browse destinations, register/login, and view travel details.(Travello)
So far, the site has:
-Dynamic destination listings
-User authentication
-Responsive design
I’m looking for suggestions on what other project ideas to help me level up my Django skills.
/r/django
https://redd.it/1nrx05b
Reddit
From the django community on Reddit
Explore this post and more from the django community
Built an Event Booking platform with Django + HTMX + Docker (looking for critiques and advice)
Hii guys,
I recently finished a portfolio project called Event Book. It’s a ticketing platform where users can generate and validate tickets with unique QR codes, download tickets as PDFs and also get real-time updates (via HTMX).
Some features:
- QR based ticket validation
- Downloadable PDF ticket (xhtml2pdf)
- Email delivery qwith django.core.mail
- Partial page updates with HTMX
- Admin dashboard for attendee logs
- Cloudinary integration for media uploading
- Containerized with Docker + docker-compose
Tech stack:
Django, HTMX, tailwind, With Dockerfile + docker-compose.yml
Media: Cloudinary, Pillow
PDF & QR: xhtml2pdf, qrcode
What I learned:
- Integrating Django + HTMX for partial updates and modals
- QR code generation and validation
- Generating PDFs from HTML templates
- Managing media with Cloudinary
- Using Docker
- access controls
Repo: https://github.com/Tarvel/event-booking
I’d like honest critiques; what could I have done better over all and suggestions for features or real world improvements?
/r/django
https://redd.it/1nrrb77
Hii guys,
I recently finished a portfolio project called Event Book. It’s a ticketing platform where users can generate and validate tickets with unique QR codes, download tickets as PDFs and also get real-time updates (via HTMX).
Some features:
- QR based ticket validation
- Downloadable PDF ticket (xhtml2pdf)
- Email delivery qwith django.core.mail
- Partial page updates with HTMX
- Admin dashboard for attendee logs
- Cloudinary integration for media uploading
- Containerized with Docker + docker-compose
Tech stack:
Django, HTMX, tailwind, With Dockerfile + docker-compose.yml
Media: Cloudinary, Pillow
PDF & QR: xhtml2pdf, qrcode
What I learned:
- Integrating Django + HTMX for partial updates and modals
- QR code generation and validation
- Generating PDFs from HTML templates
- Managing media with Cloudinary
- Using Docker
- access controls
Repo: https://github.com/Tarvel/event-booking
I’d like honest critiques; what could I have done better over all and suggestions for features or real world improvements?
/r/django
https://redd.it/1nrrb77
GitHub
GitHub - Tarvel/event-booking
Contribute to Tarvel/event-booking development by creating an account on GitHub.
Is there a way to hide all code inputs?
Currently working through some .ipynb workbooks in vs code to study and gather some notes. I have produced some code to exemplify some of my learnings. However, I don't actually care about the code, I just care about the visuals or outputs they produce. I would therefore like a way which enables me to hide all the input code blocks. If anybody has any suggestions that would be appreciated.
/r/IPython
https://redd.it/1ns8jvx
Currently working through some .ipynb workbooks in vs code to study and gather some notes. I have produced some code to exemplify some of my learnings. However, I don't actually care about the code, I just care about the visuals or outputs they produce. I would therefore like a way which enables me to hide all the input code blocks. If anybody has any suggestions that would be appreciated.
/r/IPython
https://redd.it/1ns8jvx
Reddit
From the IPython community on Reddit
Explore this post and more from the IPython community
Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1nsa5ae
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1nsa5ae
Reddit
From the Python community on Reddit
Explore this post and more from the Python community