How are social logins implemented
So i know different libraries like all-auth and other but how exactly are they to be used. i typically build Django rest apis and i am very confused about the whole concept of implementing them through rest framework, what endpoint am i supposed to make the user go to and what type of request do they need to do to get a social media login.
is there any guide on this any resources for like beginners.
please help thank you
/r/djangolearning
https://redd.it/1k9pfza
So i know different libraries like all-auth and other but how exactly are they to be used. i typically build Django rest apis and i am very confused about the whole concept of implementing them through rest framework, what endpoint am i supposed to make the user go to and what type of request do they need to do to get a social media login.
is there any guide on this any resources for like beginners.
please help thank you
/r/djangolearning
https://redd.it/1k9pfza
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
NEED A JOB/FREELANCING | Django Developer | 4-5+ years| Remote
Hi,
I am a Python Django Backend Engineer with over 4+ years of experience, specializing in Python, Django, DRF(Rest Api) , Flask, Kafka, Celery3, Redis, RabbitMQ, Microservices, AWS, Devops, CI/CD, Docker, and Kubernetes.
My expertise has been honed through hands-on experience and can be explored in my project at https://github.com/anirbanchakraborty123/gkart_new.
I contributed to https://www.tocafootball.com/,https://www.snackshop.app/, https://www.mevvit.com, http://www.gomarkets.com/en/, https://jetcv.co, designed and developed these products from scratch and scaled it for thousands of daily active users as a Backend Engineer 2.
I am eager to bring my skills and passion for innovation to a new team. You should consider me for this position, as I think my skills and experience match with the profile. I am experienced working in a startup environment, with less guidance and high throughput. Also, I can join immediately.
Please acknowledge this mail.
Contact me on whatsapp/call +91-8473952066.
I hope to hear from you soon.
Email id = anirbanchakraborty714@gmail.com
/r/djangolearning
https://redd.it/1k8fojs
Hi,
I am a Python Django Backend Engineer with over 4+ years of experience, specializing in Python, Django, DRF(Rest Api) , Flask, Kafka, Celery3, Redis, RabbitMQ, Microservices, AWS, Devops, CI/CD, Docker, and Kubernetes.
My expertise has been honed through hands-on experience and can be explored in my project at https://github.com/anirbanchakraborty123/gkart_new.
I contributed to https://www.tocafootball.com/,https://www.snackshop.app/, https://www.mevvit.com, http://www.gomarkets.com/en/, https://jetcv.co, designed and developed these products from scratch and scaled it for thousands of daily active users as a Backend Engineer 2.
I am eager to bring my skills and passion for innovation to a new team. You should consider me for this position, as I think my skills and experience match with the profile. I am experienced working in a startup environment, with less guidance and high throughput. Also, I can join immediately.
Please acknowledge this mail.
Contact me on whatsapp/call +91-8473952066.
I hope to hear from you soon.
Email id = anirbanchakraborty714@gmail.com
/r/djangolearning
https://redd.it/1k8fojs
GitHub
GitHub - anirbanchakraborty123/gkart_new: Django Ecommerce Project with end to end deployment on AWS using Github actions CI/CD…
Django Ecommerce Project with end to end deployment on AWS using Github actions CI/CD pipeline - anirbanchakraborty123/gkart_new
A month into Django, I made a website for my friend's side hustle. Please rate my work :)
Hi everyone. I started with Django inspired by the community and by the popularity of Django. My friend approached me to make a website for his mentorship side hustle where he plans to provide one on one mentorship to students. Please visit the site and let me know how is the UI and backed? You can also test the website by scheduling a call.
Website link: https://apnamentor.pythonanywhere.com/
As a beginner, your responses are deeply appreciated
/r/django
https://redd.it/1k9r9x0
Hi everyone. I started with Django inspired by the community and by the popularity of Django. My friend approached me to make a website for his mentorship side hustle where he plans to provide one on one mentorship to students. Please visit the site and let me know how is the UI and backed? You can also test the website by scheduling a call.
Website link: https://apnamentor.pythonanywhere.com/
As a beginner, your responses are deeply appreciated
/r/django
https://redd.it/1k9r9x0
How can I remove CKEditor buttons on my page?
I'm trying to configure the flask ckeditor by removing some buttons and also to style it a bit. Right now I have this snippet in my html file:
<div class="mb-3">
{{ form.body.label(class="form-label") }}
{{ form.body(class="form-control") }}
</div>
At the end I have:
{{ ckeditor.load() }}
{{ ckeditor.config(name='body') }}
I'd like to remove the 'About CKEditor' button, is there a way to do this without custom js scripts? Is there a way to customize the color of the editor, its border etc..
/r/flask
https://redd.it/1k9yl09
I'm trying to configure the flask ckeditor by removing some buttons and also to style it a bit. Right now I have this snippet in my html file:
<div class="mb-3">
{{ form.body.label(class="form-label") }}
{{ form.body(class="form-control") }}
</div>
At the end I have:
{{ ckeditor.load() }}
{{ ckeditor.config(name='body') }}
I'd like to remove the 'About CKEditor' button, is there a way to do this without custom js scripts? Is there a way to customize the color of the editor, its border etc..
/r/flask
https://redd.it/1k9yl09
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
'Django Spellbook' - Markdown Content Management System (my first library)
I wanted to show off the Django Library I've been working on!
https://preview.redd.it/n9rzz0rbrlxe1.png?width=1036&format=png&auto=webp&s=9bad311c3ff9dde10761a59732223bdb646b4b96
Django Spellbook extends Django's templating and rendering capabilities with a focus on markdown-based content. It transforms markdown files into fully-rendered Django templates with auto-generated views and URLs, eliminating boilerplate code while maintaining Django's flexibility.
This website is powered by Django Spellbook: https://django-spellbook.org/
Here is the github: https://github.com/smattymatty/django\_spellbook (Stars are appreciated!)
I hope you like it I made it because I write a lot of markdown, and wanted a way to mix Django template language with simple markdown in a way where non-coders can contribute styled and user friendly interfaces for their content.
If you try the library, please report any bugs, issues, or feature requests! I plan on working on this for a while, I would like it to become a respected open-source library in the Django framework :)
/r/django
https://redd.it/1k9zwt3
I wanted to show off the Django Library I've been working on!
https://preview.redd.it/n9rzz0rbrlxe1.png?width=1036&format=png&auto=webp&s=9bad311c3ff9dde10761a59732223bdb646b4b96
Django Spellbook extends Django's templating and rendering capabilities with a focus on markdown-based content. It transforms markdown files into fully-rendered Django templates with auto-generated views and URLs, eliminating boilerplate code while maintaining Django's flexibility.
This website is powered by Django Spellbook: https://django-spellbook.org/
Here is the github: https://github.com/smattymatty/django\_spellbook (Stars are appreciated!)
I hope you like it I made it because I write a lot of markdown, and wanted a way to mix Django template language with simple markdown in a way where non-coders can contribute styled and user friendly interfaces for their content.
If you try the library, please report any bugs, issues, or feature requests! I plan on working on this for a while, I would like it to become a respected open-source library in the Django framework :)
/r/django
https://redd.it/1k9zwt3
Flask-based via telegram bot
I have built a secure and scalable Flask-based platform that integrates with a Telegram bot to streamline photo uploads into an online album.
Users can seamlessly create categories and assign photos directly through the bot interface.
All interactions are safeguarded with a robust authentication flow, requiring username, password, and TOTP (Time-based One-Time Password) verification to ensure high-level security and user integrity.
Any more features or ideas you can suggest for me?
/r/flask
https://redd.it/1k88wu1
I have built a secure and scalable Flask-based platform that integrates with a Telegram bot to streamline photo uploads into an online album.
Users can seamlessly create categories and assign photos directly through the bot interface.
All interactions are safeguarded with a robust authentication flow, requiring username, password, and TOTP (Time-based One-Time Password) verification to ensure high-level security and user integrity.
Any more features or ideas you can suggest for me?
/r/flask
https://redd.it/1k88wu1
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
D IJCAI 2025 Paper Result & Discussion
This is the discussion for accepted/rejected papers in IJCAI 2025. Results are supposed to be released within the next 24 hours.
/r/MachineLearning
https://redd.it/1k9twhg
This is the discussion for accepted/rejected papers in IJCAI 2025. Results are supposed to be released within the next 24 hours.
/r/MachineLearning
https://redd.it/1k9twhg
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Tuesday Daily Thread: Advanced questions
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1kaagpl
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1kaagpl
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Clean method for ORM
Hello People,
I just picked up a ticket in which there appears to be DB savings in the clean() method of a model. I’ve never seen this before and I think it’s probably not good practice as clean() should be validating data only and not actually saving anything to the DB.
My question, how do you go about updating an attribute from another model?
Such as ModelA gets updated. So we have to update ModelB timestamp.
I was thinking of using a postsave() but unsure.
Context:
Model1:
Cost Model
def clean():
cost.account.timestamp = timezone.now()
cost.account.validatedsave()
Model2:
Account Model
/r/django
https://redd.it/1ka6ht5
Hello People,
I just picked up a ticket in which there appears to be DB savings in the clean() method of a model. I’ve never seen this before and I think it’s probably not good practice as clean() should be validating data only and not actually saving anything to the DB.
My question, how do you go about updating an attribute from another model?
Such as ModelA gets updated. So we have to update ModelB timestamp.
I was thinking of using a postsave() but unsure.
Context:
Model1:
Cost Model
def clean():
cost.account.timestamp = timezone.now()
cost.account.validatedsave()
Model2:
Account Model
/r/django
https://redd.it/1ka6ht5
Reddit
From the django community on Reddit
Explore this post and more from the django community
Looking for Django project
Hey everyone!
I'm planning to start a Django project and I'm looking for some cool and interesting project title ideas. It can be anything—web apps, automation tools, dashboards, or something creative! If you have any suggestions or ideas, please drop them here.
Would love to hear your thoughts!
/r/djangolearning
https://redd.it/1k6bu2v
Hey everyone!
I'm planning to start a Django project and I'm looking for some cool and interesting project title ideas. It can be anything—web apps, automation tools, dashboards, or something creative! If you have any suggestions or ideas, please drop them here.
Would love to hear your thoughts!
/r/djangolearning
https://redd.it/1k6bu2v
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
lblprof: Easily see your python code’s performance, Line by Line
Hello [r/Python](https://www.reddit.com/r/Python/),
I built this small python package ([lblprof](https://github.com/le-codeur-rapide/lblprof)) because I needed it for other projects optimization (also just for fun haha) and **I would love to have some feedback on it.**
# What my project Does ?
The goal is to be able to know very quickly how much time was spent on each line during my code execution.
I don't aim to be precise at the nano second like other lower level profiling tool, but I really care at seeing **easily** where my 100s of milliseconds are spent. I built this project to replace the old good `print(start - time.time())` that I was abusing.
This package profile your code and display a tree in the terminal showing the duration of each line (you can expand each call to display the duration of each line in this frame)
Example of the terminal UI: [terminalui\_showcase.png (1210×523)](https://raw.githubusercontent.com/le-codeur-rapide/lblprof/refs/heads/main/docs/terminalui_showcase.png)
# Target Audience
Devs who want a quick insight into how their code’s execution time is distributed. (what are the longest lines ? Does the concurrence work ? Which of these imports is taking so much time ? ...)
# Installation
pip install lblprof
The only dependency of this package is pydantic, the rest is standard library.
# Usage
This package contains **4 main functions**:
* `start_tracing()`: Start the tracing of
/r/Python
https://redd.it/1ka71qs
Hello [r/Python](https://www.reddit.com/r/Python/),
I built this small python package ([lblprof](https://github.com/le-codeur-rapide/lblprof)) because I needed it for other projects optimization (also just for fun haha) and **I would love to have some feedback on it.**
# What my project Does ?
The goal is to be able to know very quickly how much time was spent on each line during my code execution.
I don't aim to be precise at the nano second like other lower level profiling tool, but I really care at seeing **easily** where my 100s of milliseconds are spent. I built this project to replace the old good `print(start - time.time())` that I was abusing.
This package profile your code and display a tree in the terminal showing the duration of each line (you can expand each call to display the duration of each line in this frame)
Example of the terminal UI: [terminalui\_showcase.png (1210×523)](https://raw.githubusercontent.com/le-codeur-rapide/lblprof/refs/heads/main/docs/terminalui_showcase.png)
# Target Audience
Devs who want a quick insight into how their code’s execution time is distributed. (what are the longest lines ? Does the concurrence work ? Which of these imports is taking so much time ? ...)
# Installation
pip install lblprof
The only dependency of this package is pydantic, the rest is standard library.
# Usage
This package contains **4 main functions**:
* `start_tracing()`: Start the tracing of
/r/Python
https://redd.it/1ka71qs
Reddit
Python
The official Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language.
---
If you have questions or are new to Python use r/LearnPython
---
If you have questions or are new to Python use r/LearnPython
Django Alerts with Google Chat
https://medium.com/me/stats/post/c9e8a033a229
/r/django
https://redd.it/1kaj7gi
https://medium.com/me/stats/post/c9e8a033a229
/r/django
https://redd.it/1kaj7gi
Some security in LLM based apps
Hi everyone!
I'm excited to share a project I've been working on: Resk-LLM, a Python library designed to enhance the security of applications based on Large Language Models (LLMs) like OpenAI, Anthropic, Cohere, and others.
## What My Project Does
Resk-LLM focuses on adding a protective layer to LLM interactions, helping developers experiment with strategies to mitigate risks like prompt injection, data leaks, and content moderation challenges.
🔗 GitHub Repository: https://github.com/Resk-Security/Resk-LLM
## Motivation
As LLMs become more integrated into apps, security challenges like prompt injection, data leakage, and manipulation attacks have become serious concerns.
However, many developers lack accessible tools to experiment with LLM security mechanisms easily.
While some solutions exist, they are often closed-source, narrowly scoped, or too tied to a single provider.
I built Resk-LLM to make it easier for developers to prototype, test, and understand LLM vulnerabilities and defenses — with a focus on transparency, flexibility, and multi-provider support.
The project is still experimental and intended for learning and prototyping, not production-grade security yet — but I'm excited to open it up for feedback and contributions.
## Target Audience
Resk-LLM is aimed at:
Developers building LLM-based applications who want to explore basic security protections.
Security researchers interested in LLM attack surface exploration.
Hobbyists or students learning about the security challenges of generative
/r/Python
https://redd.it/1kahx5r
Hi everyone!
I'm excited to share a project I've been working on: Resk-LLM, a Python library designed to enhance the security of applications based on Large Language Models (LLMs) like OpenAI, Anthropic, Cohere, and others.
## What My Project Does
Resk-LLM focuses on adding a protective layer to LLM interactions, helping developers experiment with strategies to mitigate risks like prompt injection, data leaks, and content moderation challenges.
🔗 GitHub Repository: https://github.com/Resk-Security/Resk-LLM
## Motivation
As LLMs become more integrated into apps, security challenges like prompt injection, data leakage, and manipulation attacks have become serious concerns.
However, many developers lack accessible tools to experiment with LLM security mechanisms easily.
While some solutions exist, they are often closed-source, narrowly scoped, or too tied to a single provider.
I built Resk-LLM to make it easier for developers to prototype, test, and understand LLM vulnerabilities and defenses — with a focus on transparency, flexibility, and multi-provider support.
The project is still experimental and intended for learning and prototyping, not production-grade security yet — but I'm excited to open it up for feedback and contributions.
## Target Audience
Resk-LLM is aimed at:
Developers building LLM-based applications who want to explore basic security protections.
Security researchers interested in LLM attack surface exploration.
Hobbyists or students learning about the security challenges of generative
/r/Python
https://redd.it/1kahx5r
GitHub
GitHub - Resk-Security/Resk-LLM: Resk is a robust Python library designed to enhance security and manage context when interacting…
Resk is a robust Python library designed to enhance security and manage context when interacting with LLMs. It provides a protective layer for API calls, safeguarding against common vulnerabili...
Implementing a confirmation view after a form submission
Hi everyone,
I'm very new to Django and web development. I have a simple form where a user can enter a list of data, say names. Since the user isn't savvy with SQL, I want the app to basically update some rows in our database based on the list. But before the changes are written to the database, I want there to be a view which basically shows what the user entered into the form. So here's the interface/sequence I'm trying to implement:
1. User is presented with a textbox which allows them to submit a list, eg "Bob, John"
2. Django app presents the user with a summary of the input and asks them to confirm, eg "you have entered 2 names, double check that this is correct". If the database doesn't know about Bob or John, then this is when it would notify the user.
3. The Django app performs the relevant update
I've been researching this online and I'm seeing different recommendations. The simplest solution seems to be to have a confirmation view which has a hidden input with the same data as the original form? But then wouldn't the app be processing the input data twice? Do you guys have
/r/django
https://redd.it/1kanhms
Hi everyone,
I'm very new to Django and web development. I have a simple form where a user can enter a list of data, say names. Since the user isn't savvy with SQL, I want the app to basically update some rows in our database based on the list. But before the changes are written to the database, I want there to be a view which basically shows what the user entered into the form. So here's the interface/sequence I'm trying to implement:
1. User is presented with a textbox which allows them to submit a list, eg "Bob, John"
2. Django app presents the user with a summary of the input and asks them to confirm, eg "you have entered 2 names, double check that this is correct". If the database doesn't know about Bob or John, then this is when it would notify the user.
3. The Django app performs the relevant update
I've been researching this online and I'm seeing different recommendations. The simplest solution seems to be to have a confirmation view which has a hidden input with the same data as the original form? But then wouldn't the app be processing the input data twice? Do you guys have
/r/django
https://redd.it/1kanhms
Reddit
From the django community on Reddit
Explore this post and more from the django community