Please help ASAP ngrok issues
i am having this issue always and now its not even working just showing up this,"Your ngrok-agent version "2.3.41" is too old. The minimum supported agent version for your account is "3.2.0". Please update to a newer version with `ngrok update`, by downloading from https://ngrok.com/download, or by updating your SDK version. Paid accounts are currently excluded from minimum agent version requirements. To begin handling traffic immediately without updating your agent, upgrade to a paid plan: https://dashboard.ngrok.com/billing/subscription."
what should i do i tried with ngrok update but it told me ngrok is running the latest update
please help
/r/djangolearning
https://redd.it/1hn5e8e
i am having this issue always and now its not even working just showing up this,"Your ngrok-agent version "2.3.41" is too old. The minimum supported agent version for your account is "3.2.0". Please update to a newer version with `ngrok update`, by downloading from https://ngrok.com/download, or by updating your SDK version. Paid accounts are currently excluded from minimum agent version requirements. To begin handling traffic immediately without updating your agent, upgrade to a paid plan: https://dashboard.ngrok.com/billing/subscription."
what should i do i tried with ngrok update but it told me ngrok is running the latest update
please help
/r/djangolearning
https://redd.it/1hn5e8e
Ngrok
Download ngrok
Download the ngrok agent, SDKs, and Kubernetes integration for your platform.
Made a self-hosted ebook2audiobook converter, supports voice cloning and 1107+ languages :)
What my project does:
Give it any ebook file and it will convert it into an audiobook, it runs locally for free
Target Audience:
It’s meant to be used as an access ability tool or to help out anyone who likes audiobooks
Comparison:
It’s better than existing alternatives because it runs completely locally and free, needs only 4gb of ram, and supports 1107+ languages. :)
Demos audio files are located in the readme :)
And has a self-contained docker image if you want it like that
GitHub here if you want to check it out :)))
https://github.com/DrewThomasson/
ebook2audiobook
/r/Python
https://redd.it/1hn6pzt
What my project does:
Give it any ebook file and it will convert it into an audiobook, it runs locally for free
Target Audience:
It’s meant to be used as an access ability tool or to help out anyone who likes audiobooks
Comparison:
It’s better than existing alternatives because it runs completely locally and free, needs only 4gb of ram, and supports 1107+ languages. :)
Demos audio files are located in the readme :)
And has a self-contained docker image if you want it like that
GitHub here if you want to check it out :)))
https://github.com/DrewThomasson/
ebook2audiobook
/r/Python
https://redd.it/1hn6pzt
GitHub
DrewThomasson - Overview
DrewThomasson has 52 repositories available. Follow their code on GitHub.
Flask vs fastapi
I am a newbie. I have a little building Web apps in flask but recently came to know about fastapi and how it's more "modern". Now I am confused. I want to start building my career in Web development. Which is better option for me to use? To be more exact, which one is more used in the industry and has a good future? If there isn't much difference then I want to go with whichever is more easier.
P.S: I intend to learn react for front end so even if I
/r/flask
https://redd.it/1hmn0n4
I am a newbie. I have a little building Web apps in flask but recently came to know about fastapi and how it's more "modern". Now I am confused. I want to start building my career in Web development. Which is better option for me to use? To be more exact, which one is more used in the industry and has a good future? If there isn't much difference then I want to go with whichever is more easier.
P.S: I intend to learn react for front end so even if I
/r/flask
https://redd.it/1hmn0n4
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Made a cli tool to setup Django boring stuff
I been working on a lot of Django projects, lately and got tired of doing same old boring, repetitive stuff so i made this cli tool to do all that.
Check it out and lmk how i can make it better:
https://github.com/fulanii/djang\_setup
https://pypi.org/project/djang-setup/
/r/django
https://redd.it/1hnauso
I been working on a lot of Django projects, lately and got tired of doing same old boring, repetitive stuff so i made this cli tool to do all that.
Check it out and lmk how i can make it better:
https://github.com/fulanii/djang\_setup
https://pypi.org/project/djang-setup/
/r/django
https://redd.it/1hnauso
GitHub
GitHub - fulanii/djang_setup: A simple cli too build in python to generate Django configs
A simple cli too build in python to generate Django configs - fulanii/djang_setup
Working Project: Flask Packages
Hello! I've been working on a project firstly names "Flask Packages" (much like Django Packages) the idea is to provide useful information related to projects in the Flask ecosystem, other than to show the project I wanted to ask what information you consider relevant to show in each project, i'm thinking something like this
Project:
- PyPi/Conda api basic information
- Some sort of "I'm currently using this" button (meh, i don't really want to go the popularity contest road, but it seems logical)
- Downloads (same as above)
Code:
- repo related information (commit grap, cosed/open issues, etc)
- Coverage/Tests results?
- Colaborators?
For now my idea is to categorize each project and then add tags to group them in a way what's useful ("Authorization","Database","Templates", etc)
The repo is at https://github.com/mariofix/limelight in case anyone want to send a pr or start a discussion there.
Let me know what you think (excuse the bootstrap skeleton).
Cheers!
/r/flask
https://redd.it/1hmvhxf
Hello! I've been working on a project firstly names "Flask Packages" (much like Django Packages) the idea is to provide useful information related to projects in the Flask ecosystem, other than to show the project I wanted to ask what information you consider relevant to show in each project, i'm thinking something like this
Project:
- PyPi/Conda api basic information
- Some sort of "I'm currently using this" button (meh, i don't really want to go the popularity contest road, but it seems logical)
- Downloads (same as above)
Code:
- repo related information (commit grap, cosed/open issues, etc)
- Coverage/Tests results?
- Colaborators?
For now my idea is to categorize each project and then add tags to group them in a way what's useful ("Authorization","Database","Templates", etc)
The repo is at https://github.com/mariofix/limelight in case anyone want to send a pr or start a discussion there.
Let me know what you think (excuse the bootstrap skeleton).
Cheers!
/r/flask
https://redd.it/1hmvhxf
GitHub
GitHub - mariofix/limelight: Flask extensions and libraries
Flask extensions and libraries. Contribute to mariofix/limelight development by creating an account on GitHub.
Django vs Frappe
Hello everyone, I've just been offered an intern as a python developer at a startup. I applied to this company hoping the stack to be django as the tech stack wasn't clarified to us on their requirements it just said we required python developer intern. Now I've been offered this role where the tech stack is based around frappe and developing ERP systems and I'm confused if I should take this role.
I want to become a django/backend dev and later shift to Data Engineering.
It's not like I haven't applied to django/backend internships, these positions rarely open and I'm on my final semester of my bachelor's idk what I should do.
/r/django
https://redd.it/1hndm21
Hello everyone, I've just been offered an intern as a python developer at a startup. I applied to this company hoping the stack to be django as the tech stack wasn't clarified to us on their requirements it just said we required python developer intern. Now I've been offered this role where the tech stack is based around frappe and developing ERP systems and I'm confused if I should take this role.
I want to become a django/backend dev and later shift to Data Engineering.
It's not like I haven't applied to django/backend internships, these positions rarely open and I'm on my final semester of my bachelor's idk what I should do.
/r/django
https://redd.it/1hndm21
Reddit
From the django community on Reddit
Explore this post and more from the django community
Flux: A beautiful flowfield visualization app.
What My Project Does
Flux is an interactive Python application that brings flow fields to life, creating mesmerizing particle animations in real time. With configurable flow field functions, color schemes, and particle dynamics, Flux is perfect for both artistic expression and technical exploration.
Key Features
Customizable Flow Field: Choose from various mathematical functions to define the behavior of particles in the field.
Interactive Particle Control: Modify particle speed, lifespan, radius, and more via an intuitive GUI.
Real-Time Rendering: Smoothly renders particle animations with frame-by-frame updates.
User-Friendly Interface: Built with a modern and responsive design using
Use Cases
Digital Art: Create visually appealing flow animations for presentations or digital installations.
Education: Explore mathematical functions/concepts in an engaging, interactive way.
Relaxation: Experiment with color themes and motion styles to craft unique relaxing visuals.
Target Audience
Visual artists looking to generate dynamic digital art.
Developers and Creative Coders experimenting with particle-based animations.
Anyone who enjoys exploring the interplay of motion and color.
Check out the project here: https://github.com/harshkaso/flux.
I'd love to get your feedback or feature suggestions!
/r/Python
https://redd.it/1hn7n21
What My Project Does
Flux is an interactive Python application that brings flow fields to life, creating mesmerizing particle animations in real time. With configurable flow field functions, color schemes, and particle dynamics, Flux is perfect for both artistic expression and technical exploration.
Key Features
Customizable Flow Field: Choose from various mathematical functions to define the behavior of particles in the field.
Interactive Particle Control: Modify particle speed, lifespan, radius, and more via an intuitive GUI.
Real-Time Rendering: Smoothly renders particle animations with frame-by-frame updates.
User-Friendly Interface: Built with a modern and responsive design using
dearpygui.Use Cases
Digital Art: Create visually appealing flow animations for presentations or digital installations.
Education: Explore mathematical functions/concepts in an engaging, interactive way.
Relaxation: Experiment with color themes and motion styles to craft unique relaxing visuals.
Target Audience
Visual artists looking to generate dynamic digital art.
Developers and Creative Coders experimenting with particle-based animations.
Anyone who enjoys exploring the interplay of motion and color.
Check out the project here: https://github.com/harshkaso/flux.
I'd love to get your feedback or feature suggestions!
/r/Python
https://redd.it/1hn7n21
GitHub
GitHub - harshkaso/Flux: A flowfield visualization with particle simulation
A flowfield visualization with particle simulation - harshkaso/Flux
I wrote a Turing complete language / interpreter on top of Python.
Target Audience : Python enthusiasts.
What My Project Does:
It's a programming language built on top of Python.
I've got functions, branch statements, variable assignment, loops and print statements (the ultimate debugger) in there.
Running on top of python is pretty wasteful but the implementation gives me a sense of appreciation to what goes into language design, convenience and feature development.
Link: https://github.com/MoMus2000/Boa
Leave a star on the repo if you like it :)
Comparison:
Not recommended to use in Prod. It adds zero value to what exists already in the programming community.
/r/Python
https://redd.it/1hnfqhi
Target Audience : Python enthusiasts.
What My Project Does:
It's a programming language built on top of Python.
I've got functions, branch statements, variable assignment, loops and print statements (the ultimate debugger) in there.
Running on top of python is pretty wasteful but the implementation gives me a sense of appreciation to what goes into language design, convenience and feature development.
Link: https://github.com/MoMus2000/Boa
Leave a star on the repo if you like it :)
Comparison:
Not recommended to use in Prod. It adds zero value to what exists already in the programming community.
/r/Python
https://redd.it/1hnfqhi
GitHub
GitHub - MoMus2000/Boa: Boa: The language you didn't know you needed, but here we are.
Boa: The language you didn't know you needed, but here we are. - MoMus2000/Boa
Please help, Aboutpage doesn't work
I'm completely new to django and I'm trying to follow this tutorial: https://youtu.be/Rp5vd34d-z4?si=0NRJbZVSFFto1d0O
I'm at 14.40 and the guy in the video refreshes his server. It ends up showing a message on the homepage and created an about page. Even though I have every single line of code the same and the directory is the same, neither of the two work. I needed to close the terminal, but i started a new one where I started the vinv again and set the directory to myproject again (Has that maybe caused any issues?). I don't have any error messages in the code, the server also runs without problem, it's just showing the same "congratulations" message as before and it didn't create an about page.
I'd be super happy about responses, because it's 4am in my timezone and I'm going crazy
/r/djangolearning
https://redd.it/1hn595r
I'm completely new to django and I'm trying to follow this tutorial: https://youtu.be/Rp5vd34d-z4?si=0NRJbZVSFFto1d0O
I'm at 14.40 and the guy in the video refreshes his server. It ends up showing a message on the homepage and created an about page. Even though I have every single line of code the same and the directory is the same, neither of the two work. I needed to close the terminal, but i started a new one where I started the vinv again and set the directory to myproject again (Has that maybe caused any issues?). I don't have any error messages in the code, the server also runs without problem, it's just showing the same "congratulations" message as before and it didn't create an about page.
I'd be super happy about responses, because it's 4am in my timezone and I'm going crazy
/r/djangolearning
https://redd.it/1hn595r
YouTube
Python Django Full Course for Beginners | Complete All-in-One Tutorial | 3 Hours
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
This Python Django Full Course for Beginners is an all-in-one beginner tutorial and complete course full of over 3 hours of Django code and instruction to level up your programming…
This Python Django Full Course for Beginners is an all-in-one beginner tutorial and complete course full of over 3 hours of Django code and instruction to level up your programming…
How can I make a user login to their YouTube account when they authenticate with google oAuth
I am working on a project in django allauth and wanted to use the oAuth access and refresh tokens to establish a cookie session on youtube,
Goal is the make the user login to their YouTube account with oAuth
/r/django
https://redd.it/1hnd3bs
I am working on a project in django allauth and wanted to use the oAuth access and refresh tokens to establish a cookie session on youtube,
Goal is the make the user login to their YouTube account with oAuth
/r/django
https://redd.it/1hnd3bs
Reddit
From the django community on Reddit
Explore this post and more from the django community
render_template bypassing decorators?
Greetings
In one of my projects, I have found an issue where any route that returns `render_template()` seems to completely ignore a wrapper placed over it.
For context, here is an example:
@app.route("/", methods = ["GET"])
@CSRF_protect
def home():
return render_template("home.html")
However, for another endpoint with the same decorator, there isn't any issue. The decorator also works just as intended
@auth.route("/reissue", methods = ["GET", "OPTIONS"])
@attach_CORS_headers
@CSRF_protect
def reissue():
...
I also tried working around `render_template()` by using `make_response()` to return a Response object directly without relying on any underlying logic that Flask might have for `render_template()` . Same result.
Anyone know why this is happening?
/r/flask
https://redd.it/1hni3uw
Greetings
In one of my projects, I have found an issue where any route that returns `render_template()` seems to completely ignore a wrapper placed over it.
For context, here is an example:
@app.route("/", methods = ["GET"])
@CSRF_protect
def home():
return render_template("home.html")
However, for another endpoint with the same decorator, there isn't any issue. The decorator also works just as intended
@auth.route("/reissue", methods = ["GET", "OPTIONS"])
@attach_CORS_headers
@CSRF_protect
def reissue():
...
I also tried working around `render_template()` by using `make_response()` to return a Response object directly without relying on any underlying logic that Flask might have for `render_template()` . Same result.
Anyone know why this is happening?
/r/flask
https://redd.it/1hni3uw
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
[Show Project] DocCure - Open Source Healthcare Appointment System built with Django
Hey everyone! I wanted to share DocCure, an open-source healthcare appointment booking system I built using Django. It helps connect patients with doctors while streamlining the entire appointment and consultation process. This is my another long project which I started long time ago and now added more features.
**WHAT IT DOES:**
* Patients can search for doctors by specialty, book appointments, and manage their medical records
* Doctors can manage their schedules, handle appointments, write digital prescriptions, and track earnings
* Admins get a full dashboard with user management, revenue tracking, and detailed analytics
* New reporting system with interactive charts for appointment trends and revenue analysis
CORE FEATURES:
* Search & book appointments with doctors
* Digital health records & appointment history
* Review & rating system
* Invoice management
**For Patients:**
* Professional profile management
* Schedule management
* Digital prescriptions
* Earnings tracking
**For Doctors:**
* Professional profile management
* Schedule management
* Digital prescriptions
* Earnings tracking
**For Administrators:**
* Complete dashboard
* Revenue analytics
* User management
* Advanced reporting with charts
* Prescription monitoring
**TECH STACK:**
* Backend: Django 5, Python 3.8+
* Frontend: Bootstrap 4, jQuery, Chart.js
* Database: SQLite3
* Additional: HTMX, CKEditor
The project is fully open source and looking for contributors! You can find it here: [https://github.com/manjurulhoque/doccure](https://github.com/manjurulhoque/doccure)
DEMO CREDENTIALS:
Doctor Account:
Username: doctor1
Password: Abcdefgh.1
Patient Account:
Username: patient1
Password: Abcdefgh.1
Would love to hear your thoughts and feedback!
SCREENSHOTS:
I've added several screenshots in the repo showing the appointment booking flow, doctor
/r/django
https://redd.it/1hnn4rm
Hey everyone! I wanted to share DocCure, an open-source healthcare appointment booking system I built using Django. It helps connect patients with doctors while streamlining the entire appointment and consultation process. This is my another long project which I started long time ago and now added more features.
**WHAT IT DOES:**
* Patients can search for doctors by specialty, book appointments, and manage their medical records
* Doctors can manage their schedules, handle appointments, write digital prescriptions, and track earnings
* Admins get a full dashboard with user management, revenue tracking, and detailed analytics
* New reporting system with interactive charts for appointment trends and revenue analysis
CORE FEATURES:
* Search & book appointments with doctors
* Digital health records & appointment history
* Review & rating system
* Invoice management
**For Patients:**
* Professional profile management
* Schedule management
* Digital prescriptions
* Earnings tracking
**For Doctors:**
* Professional profile management
* Schedule management
* Digital prescriptions
* Earnings tracking
**For Administrators:**
* Complete dashboard
* Revenue analytics
* User management
* Advanced reporting with charts
* Prescription monitoring
**TECH STACK:**
* Backend: Django 5, Python 3.8+
* Frontend: Bootstrap 4, jQuery, Chart.js
* Database: SQLite3
* Additional: HTMX, CKEditor
The project is fully open source and looking for contributors! You can find it here: [https://github.com/manjurulhoque/doccure](https://github.com/manjurulhoque/doccure)
DEMO CREDENTIALS:
Doctor Account:
Username: doctor1
Password: Abcdefgh.1
Patient Account:
Username: patient1
Password: Abcdefgh.1
Would love to hear your thoughts and feedback!
SCREENSHOTS:
I've added several screenshots in the repo showing the appointment booking flow, doctor
/r/django
https://redd.it/1hnn4rm
GitHub
GitHub - manjurulhoque/doccure: DocCure is a healthcare appointment management system designed to streamline the connection between…
DocCure is a healthcare appointment management system designed to streamline the connection between doctors and patients. Built with Django and modern web technologies, it simplifies the process of...
Simple Notification Handling Solution
I'm trying to integrate notifications into an existing website structure. Currently on the backend, when I want to create a new notification, I just create a new record in the database and my "sent\_to\_client" attribute is set to false. On the frontend, I'm using HTMX to create a websocket connection with the server. The problem is that I'm polling the database a couple hundred times a second. I've looked into Redis Pub/Sub models but want to avoid that complexity. I've also used polling in the past but I need data to update much quicker (and reducing the polling time leads to me the same result: - lots of queries).
Is there any workaround to achieve these <1s notifications without the extra complexity and dependencies?
# routes.py
@sock.route("/notifications")
@login_required
def notifications(ws):
# get initial list of notifications
all_notifications = Notification.query.filter_by(user_id=current_user.id).filter(Notification.dismissed == False).order_by(Notification.timestamp).all()
initial_template = render_template("admin/notifications/notifications.html", all_notifications=all_notifications)
ws.send(initial_template)
while True:
/r/flask
https://redd.it/1hnnunu
I'm trying to integrate notifications into an existing website structure. Currently on the backend, when I want to create a new notification, I just create a new record in the database and my "sent\_to\_client" attribute is set to false. On the frontend, I'm using HTMX to create a websocket connection with the server. The problem is that I'm polling the database a couple hundred times a second. I've looked into Redis Pub/Sub models but want to avoid that complexity. I've also used polling in the past but I need data to update much quicker (and reducing the polling time leads to me the same result: - lots of queries).
Is there any workaround to achieve these <1s notifications without the extra complexity and dependencies?
# routes.py
@sock.route("/notifications")
@login_required
def notifications(ws):
# get initial list of notifications
all_notifications = Notification.query.filter_by(user_id=current_user.id).filter(Notification.dismissed == False).order_by(Notification.timestamp).all()
initial_template = render_template("admin/notifications/notifications.html", all_notifications=all_notifications)
ws.send(initial_template)
while True:
/r/flask
https://redd.it/1hnnunu
Reddit
From the flask community on Reddit
Explore this post and more from the flask 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/1hnsrdc
# 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/1hnsrdc
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…
Made a watcher so I don't have to run my script manually when coding
What my project does:
This is a watcher that reruns scripts, executes tests, and runs lint after you change a directory or a file.
Target Audience:
If you, like me, hate swapping between windows or panes to rerun a Python script you are working with, this will be perfect for you.
Comparison:
I just wanted something easy to run and lean with no bloated dependencies. At this point, it has a single dependency, and it allows you to rerun scripts after any file is modified. It also allows you to run pytest and pylint on your repo after every modification, which is quite nice if you like working based on tests.
https://github.com/NathanGavenski/python-watcher
/r/Python
https://redd.it/1hnus8y
What my project does:
This is a watcher that reruns scripts, executes tests, and runs lint after you change a directory or a file.
Target Audience:
If you, like me, hate swapping between windows or panes to rerun a Python script you are working with, this will be perfect for you.
Comparison:
I just wanted something easy to run and lean with no bloated dependencies. At this point, it has a single dependency, and it allows you to rerun scripts after any file is modified. It also allows you to run pytest and pylint on your repo after every modification, which is quite nice if you like working based on tests.
https://github.com/NathanGavenski/python-watcher
/r/Python
https://redd.it/1hnus8y
GitHub
GitHub - NathanGavenski/python-watcher: This is a watcher to rerun scripts, execute tests and run lint after you change a directory…
This is a watcher to rerun scripts, execute tests and run lint after you change a directory or a file. - NathanGavenski/python-watcher
Best practice to save images in a django project?
Hello! I am working in a project where I need to save images and add new images everyday. Should I save the files in static and do a cron job to collect the staticfiles every single day or should I save the images as a BLOB (or something similar) in the db? I've never worked with images in django before, so I have no clue what the best practice is. The docs say that they should be in static files, but I don't know if that is going to be a pain point in the long run in production and want to read from your experience!
/r/django
https://redd.it/1hnq4n9
Hello! I am working in a project where I need to save images and add new images everyday. Should I save the files in static and do a cron job to collect the staticfiles every single day or should I save the images as a BLOB (or something similar) in the db? I've never worked with images in django before, so I have no clue what the best practice is. The docs say that they should be in static files, but I don't know if that is going to be a pain point in the long run in production and want to read from your experience!
/r/django
https://redd.it/1hnq4n9
Reddit
From the django community on Reddit
Explore this post and more from the django community
Best practice to Storage boto3 with AWS with regular updates
Hi to everyone, I build a project that users adds new images and also updates new ones. Users can delete images and add new ones.
I made this using a class model called Guide with attributes that have a many to many field with a class model TechnicalFile.
In this TechnicalFile, it has a FileField attribute.
My implementation flaws at this:
1. User deletes an image
2. User adds a new image.
Frontend downloads from aws S3 bucket the existed images for that Guide object. And adds the new ones to the payload.
Backend just delete all images and put all the payload images to my bucket.
My question is how do I delete and add operations on images with best practice or how should be done more efficiently.
Hope some help, please. Let me know if you have any questions.
/r/django
https://redd.it/1hnucua
Hi to everyone, I build a project that users adds new images and also updates new ones. Users can delete images and add new ones.
I made this using a class model called Guide with attributes that have a many to many field with a class model TechnicalFile.
In this TechnicalFile, it has a FileField attribute.
My implementation flaws at this:
1. User deletes an image
2. User adds a new image.
Frontend downloads from aws S3 bucket the existed images for that Guide object. And adds the new ones to the payload.
Backend just delete all images and put all the payload images to my bucket.
My question is how do I delete and add operations on images with best practice or how should be done more efficiently.
Hope some help, please. Let me know if you have any questions.
/r/django
https://redd.it/1hnucua
Reddit
From the django community on Reddit
Explore this post and more from the django community
Textual CSS Neovim Plugin - Syntax Highlighting, Indentation, Folding, etc.
Hello!!
For those who are familiar with Textual, I noticed there wasn't an extension for syntax highlighting, indentation, etc. for NeoVim users so I decided to make one!
Here's the repo
This is my first plugin so if you see an issue, you are more than welcome to submit a pull request. I am open to all feedback, and criticism.
Thanks so much! I know it's a super niche issue but I hope it's helpful to someone out there.
/r/Python
https://redd.it/1hnrxs8
Hello!!
For those who are familiar with Textual, I noticed there wasn't an extension for syntax highlighting, indentation, etc. for NeoVim users so I decided to make one!
Here's the repo
This is my first plugin so if you see an issue, you are more than welcome to submit a pull request. I am open to all feedback, and criticism.
Thanks so much! I know it's a super niche issue but I hope it's helpful to someone out there.
/r/Python
https://redd.it/1hnrxs8
GitHub
GitHub - cachebag/tcss-nvim-plugin: A neovim plugin that enables syntax highlighting for Textual CSS files.
A neovim plugin that enables syntax highlighting for Textual CSS files. - GitHub - cachebag/tcss-nvim-plugin: A neovim plugin that enables syntax highlighting for Textual CSS files.
How to read the documentation
Hello everyone I'm starting an important project for my school and I needed to use Django in order to achieve more points in the "backend development" part and I wanted to ask something really important from you guys:
How should I read the documentation?
Let me elaborate, practically I started reading the Django documentation, to be more precise the "getting started" part that would've introduce to a little development of something with the framework. But since I started studying I just used the "django-admin project start" command (or something like that) and I still have the default files that comes with the command, and that is because the getting started part keeps throwing at you a lot of concepts that you can't actually practice out properly, one example is the Middleware that now I know how it works but I'm still too novice to even try to create my own. How I know the Middleware? That's because during the getting started guide a lot of concepts are highlighted and if you click on it a full page will give you a lot of theory behind it, and since I'm "just" reading this days that I'm studying Django I was guessing if I'm
/r/django
https://redd.it/1hnlz5c
Hello everyone I'm starting an important project for my school and I needed to use Django in order to achieve more points in the "backend development" part and I wanted to ask something really important from you guys:
How should I read the documentation?
Let me elaborate, practically I started reading the Django documentation, to be more precise the "getting started" part that would've introduce to a little development of something with the framework. But since I started studying I just used the "django-admin project start" command (or something like that) and I still have the default files that comes with the command, and that is because the getting started part keeps throwing at you a lot of concepts that you can't actually practice out properly, one example is the Middleware that now I know how it works but I'm still too novice to even try to create my own. How I know the Middleware? That's because during the getting started guide a lot of concepts are highlighted and if you click on it a full page will give you a lot of theory behind it, and since I'm "just" reading this days that I'm studying Django I was guessing if I'm
/r/django
https://redd.it/1hnlz5c
Reddit
From the django community on Reddit
Explore this post and more from the django community
local_bgrem: YOLOv8 Segmentation based Photo Background Remover | Fast and Offline
**What My Project Does**
It is an attempt to create a locally runnable and fast photo background remover. The ultimate aim is to create a 1 click background remover functionality in various free or open source software such as GIMP and Paint.net.
**Target Audience**
Anyone who wants to quickly remove background from photos without setting and downloading huge libraries and run inference.
**Comparison**
No comparison. Just a hobby project. I just came across a project (mentioned in acknowledgement) that uses Yolov8 for segmentation but in ReactJS, so I thought of extending that into removing background by keeping the masked objects and remove everything else from the image. The **very similar approach Microsoft Paint uses**, that's why it is quick and offline. So I will now work on smoothening the jagged edges and identifying principal objects to make it more accurate if possible.
The code is available here: [https://github.com/Suleman-Elahi/local\_bgrem](https://github.com/Suleman-Elahi/local_bgrem)
/r/Python
https://redd.it/1ho1ukg
**What My Project Does**
It is an attempt to create a locally runnable and fast photo background remover. The ultimate aim is to create a 1 click background remover functionality in various free or open source software such as GIMP and Paint.net.
**Target Audience**
Anyone who wants to quickly remove background from photos without setting and downloading huge libraries and run inference.
**Comparison**
No comparison. Just a hobby project. I just came across a project (mentioned in acknowledgement) that uses Yolov8 for segmentation but in ReactJS, so I thought of extending that into removing background by keeping the masked objects and remove everything else from the image. The **very similar approach Microsoft Paint uses**, that's why it is quick and offline. So I will now work on smoothening the jagged edges and identifying principal objects to make it more accurate if possible.
The code is available here: [https://github.com/Suleman-Elahi/local\_bgrem](https://github.com/Suleman-Elahi/local_bgrem)
/r/Python
https://redd.it/1ho1ukg