SK
Hi @everyone, Need help on the below logic If results are fetching then writing the password reset logic but when search for a user both messages are displaying at a time .. not able to get how to segregate this . if anyone can help me on this.
King David
Django how to work runserver and python manage.py
@user.py
Hello guys please I'm trying to implement a logic for creating an order in an ecom project. I need to empty the cart in order to create the OrderItem. I don't seem to get it right.
@user.py
This is my OrderListCreateView 👇 https://dpaste.org/EPKNK
@user.py
This is my order Serializer 👇 https://dpaste.org/XFGhk
Rose
User Nick has 1/3 warnings; be careful! Reason: offtopic and crossposting
Rose
User ᗰEᕼᖇᗩᑎ ᖇᗩᕼᗰᗩᑎI has 2/3 warnings; be careful! Reason: offtopic again
Prince
https://pastebin.com/YAfhDb5h I am using django-shopping-cart but facing attribute error. can anyone help me fix it?
Prince
AttributeError at /cart/cart-detail/ 'list' object has no attribute 'items'
ASR
Anyone using django with mongodb
ASR
I am new to mongodb. I am facing an issue when trying to use django User model as a foreign key field into an another model.I am trying to create a todo app with user authentication. Could you please help me !!
sarath
Hi team , is there any example repos for a django unit test cases.
Rose
I am new to mongodb. I am facing an issue when trying to use django User model as a foreign key field into an another model.I am trying to create a todo app with user authentication. Could you please help me !!
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
Prince
does anyone know to configure minio with django?
Prince
I am getting ModuleNotFoundError: No module named 'django_minio_storage'
Prince
Tho I installed django_minio_storage by pip install django-minio-storage
A
Hi team my local django is around 5.x x series where as amazon ec2 linux was in 4.x when the run server with the local files in ec2 i get binary error
vetriselvi
How to create a project in django from scratch.. I need to create real time projects how can I start
Naresh
Employee onboarding system django
Naresh
Help me
karuppasamy
i want upload folder like google drive and git hub based any one help me?
Rose
User Jamilah has 1/3 warnings; be careful! Reason: speak English only
Charly
Tho I installed django_minio_storage by pip install django-minio-storage
You didn't install it in the right python version or virtual environment
Charly
i want upload folder like google drive and git hub based any one help me?
Sorry, you need to explain your problem way better if you want some help.
Rose
Help me
No one can help you until you explain your difficulties.
A
So, use the same versions
In amazon Linux unable to find using yum package installer
Charly
In amazon Linux unable to find using yum package installer
You should not install Django with yum but with pip
cj
In amazon Linux unable to find using yum package installer
use virtual environments, don't install it using your distro's package manager
karuppasamy
Sorry, you need to explain your problem way better if you want some help.
i selecte one folder, inside subfolder and subfiles, now how to tree structure i upload folder to django framework same tree structure are upload in.
Junior
Guys about confirm resubmition its a error or how i can remove in loginview, without redirect?
Drago
Hello! I wanted to ask: How to translate text like password criteria in registration: "Your password can't be too similar to your other personal information. • Your password must contain at least 8 characters. Your password can't be a commonly used password. • Your password can't be entirely numeric." I want it to be in russian. I make forms in forms.py, I translated labels easily, but struggling with this one. Please help
Abhinand
Hey anyone from here does know about how to do live chat using django and react
Prince
You didn't install it in the right python version or virtual environment
No, the problem wasn't that I didn't install that package, problem is not what it looks like, it was how it should be added in installed apps 'minio_storage' and you should define DEFAULT_FILE_STORAGE = "minio_storage.storage.MinioMediaStorage" STATICFILES_STORAGE = "minio_storage.storage.MinioStaticStorage" MINIO_STORAGE_ENDPOINT = 's3storage.example.com' MINIO_STORAGE_ACCESS_KEY = '############' MINIO_STORAGE_SECRET_KEY = '##############' MINIO_STORAGE_USE_HTTPS = True MINIO_STORAGE_MEDIA_OBJECT_METADATA = {"Cache-Control": "max-age=1000"} MINIO_STORAGE_MEDIA_BUCKET_NAME = 'example-media' MINIO_STORAGE_MEDIA_BACKUP_BUCKET = 'recyclebin' MINIO_STORAGE_MEDIA_BACKUP_FORMAT = '%c/' MINIO_STORAGE_AUTO_CREATE_MEDIA_BUCKET = True MINIO_STORAGE_STATIC_BUCKET_NAME = 'example-local-static' MINIO_STORAGE_AUTO_CREATE_STATIC_BUCKET = True like this you should include in settings.py according to latest docs

Hi How can i use jwt as whole django app authorization system? (Not just apis of django rest)
Parsa
Can we combine Django with machine learning?
Prince
Hi How can i use jwt as whole django app authorization system? (Not just apis of django rest)
Ensure you have proper error handling, security measures, and user validation in your implementation. Additionally, consider using HTTPS to secure communication between the client and the server when transmitting JWT tokens.
Prince
Can we combine Django with machine learning?
Yes, you can definitely combine Django with machine learning (ML) functionalities.
Parsa
Parsa
Do you using grath databases?
Prince
Can i learn both off theme i want to create my idea ?
yes & it will be easy for you coz python got lots of libraries for ml & integrating with django too
(⌐■-■)
Do you using grath databases?
nop, the db is the basic sqlite3 that is installed when we setup the project. its more for running on local machine

yes you can
Thx but how can i do it?
(⌐■-■)
Parsa
i didn't get it. what are you trying to ask?
I means the users chat have a basically databases for logging for messaging or audio or .. how you design it ? How you design database sqlite the django mack it automatically i thank?
Prince
Thx but how can i do it?
from django.shortcuts import render from app.models import Cart @login_required(login_url="/accounts/login/") def cart_detail(request): cart_sessions = request.session.get("cart") if not cart_sessions: # Handle case where cart data is not found in session # Redirect or render appropriate response return render(request, "cart/cart_empty.html") if isinstance(cart_sessions, int): # Handle case where cart_sessions is an integer ID # Retrieve cart data using the integer ID and update cart_sessions cart_sessions = Cart.objects.filter(id=cart_sessions) # Perform further processing using cart_sessions return render(request, "cart/cart_detail.html", {'cart_sessions': cart_sessions}) like this
(⌐■-■)
I means the users chat have a basically databases for logging for messaging or audio or .. how you design it ? How you design database sqlite the django mack it automatically i thank?
I have set up a Message model in models.py that stores the messages and then used websockets and django channels for sending chat messages
(⌐■-■)
Not different but django has its own library to work with websockets
Rose
User (⌐■-■) has 1/3 warnings; be careful! Reason: Unauthorized GitHub repo
Amir Y.
Hey guys i have a model that have a field called category and i want to display the users based on that category how can i do that?
Rose
User Stive/Stivenos has 1/3 warnings; be careful! Reason: do not send PMs without the recipient's consent; ask the person in the group first (rule #9)
Amir Y.
Do a query filtering by that field
How, i have never did that? Can you show me an example please?
Rose
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Rose
User Samuel has 1/3 warnings; be careful! Reason: Don't request DMs, help is provided here
Samuel
Who has used drf-social-oauth2.0 for social authentication? I’m faced with the issue {“error”: “invalid_client”}. The client id and secret id is correct. The grant_type I’m using is password
Haroun
i want some help in my backend django code to integrate with the flutter front
Haroun
can you guys help me i'm really tired
Rose
can you guys help me i'm really tired
No one can help you until you explain your difficulties.
Naresh
New Employee Registration o New employee receives an email invitation to join the HRMS software. o Employee clicks on the registration link provided in the email. o Employee fills out the registration form with personal information (name, email, address, etc.). o Employee uploads required documents (ID proof, resume, etc.). o Employee clicks on the "Submit" button. 2. Manager Approval o HR manager receives a notification about the new employee registration. o HR manager reviews the registration details and documents. o HR manager approves the registration request. o Employee receives a confirmation email upon approval. 3. Access to Employee Portal o Employee receives login credentials (username and password) via email. o Employee logs in to the HRMS software using the provided credentials. o Employee gains access to the employee portal/dashboard.
Charly
Any idea about how to build this
Yeah many but it is not that we can tell you how to build the whole system here. If you know 0 about Django start with the official tutorial.
Y
Hyy everyone How to connect django and react React as front end and django as backend
Charly
Hyy everyone How to connect django and react React as front end and django as backend
A common way to do that is by creating an API with Django and consume it with react,
Rakesh
Hyy everyone How to connect django and react React as front end and django as backend
You can do it by developing apis using django DRF and you can use the apis using fetch or axios.
Eli
Hello, I have a Windows Server 2012r2, I want to install Django offline, I can't connect to the Internet with that system, I installed Python 3.12.3, it must be deployed on iis, I was able to use wfastcgi I will install it offline, but Django is not in any direct way, thank you for your guidance.
Nushh
Hello there, I've been working on my OCR project on my local host using the framework django. The issue I'm facing is, whenever I'm running the command python manage.py runserver in my cmd, it's showing me "Watching for file changes with StatReloader" and "Performing system checks.." without any errors being displayed.