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'
Adisa
ASR
Anyone using django with mongodb
Prince
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
Charly
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
Maxim
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
Rose
Help me
No one can help you until you explain your difficulties.
Charly
Mohammadreza
Charly
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)
Prince
Parsa
Can we combine Django with machine learning?
Parsa
Parsa
Do you using grath databases?
Parsa
(⌐■-■)
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
Parsa
(⌐■-■)
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
(⌐■-■)
Parsa
(⌐■-■)
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?
Parsa
Charly
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)
Charly
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
Charly
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
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.
Naresh
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
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.