Peak
Perform raw query instead of orm
okay I'll check this way. thanks a lot.☺️
Sergey
Hi guys do any one have idea how to show related_set items structure in django-rest?
Sergey
only hyperlinkage could help?
Sergey
is it working for relation Manager?
Mirco
only hyperlinkage could help?
It's not mandatory to use the hyperlink one
M
hi what are the methods we can do get a chat bot with my running django project .. any direction to any project on github if anyone has done it . thanks in advance ..just need guidance from this forum exp
Riyadh
How can i store Bangla language in dictionary.
Full stack developer (React, Django)
I am unable to get form data in ajax form submission... getting multidictkey error... Can anyone help me out??
Anonymous
No problem
Shivam
you can use F functions
Getting error: Complex aggregate require an alias How can I create a alias??
Jd
I want to download the project of Dajango of Super Market Management System. If it is available for free, give me the link.
Jd
Plz help me
Arezoo
Hi. how can i dont show id in serializers drf ...however i use fields and do not put id in field..but i see id in output
The
AssertionError at /api/login/ 'LoginAPI' should either include a serializer_class attribute, or override the get_serializer_class() method.
The
why this error?
The
somebody help me\
Mirco
why this error?
Because you did not include a serializer class
King Kite
I need help please. When I use signals in my models.py file, they work fine but when I put them in signals.py file, they don't work at all
Armstrong
Please is there anyway I can properly implement chatbot on my django project ......chatterbot hasn't loading well for me
Arezoo
Hi .can i use action as input in device.send_message in drf django for send notification firebase?
Werner
So i can't 😂i should use data
Arezoo
What?
NaamMainKyaRakhaHai
how to make union all for the two different model
Anonymous
My password is stored as encryption while I am trying to authenticate it's not logging in
Akhil
Guys here anyone can help me on my query about django project
Doragonsureiyā
Guys here anyone can help me on my query about django project
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
While login should I encrypt the password to match that is stored in database
Anonymous
But it's saying invalid
Anonymous
Can I past my code here
Anonymous
What does authenticate () function do
Mirco
What does authenticate () function do
it looks for matching username + password
Doragonsureiyā
Can I past my code here
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Anonymous
it looks for matching username + password
Ya but it's not matching I guess while registration the password is stored in encryption in db
VarunTheLord
My website is live in pythonanywhere. Now in my admin page I created new object. The newly created object works fine in localhost. Now how do make the same changes in pythonanywhere?
VarunTheLord
You mean I have to clone the code again from first in the dashboard?
Anonymous
Mirco
Bro can u please help with code
not your bro and if u don't share code it's impossible to help u
Anonymous
I am new too django facing some error on ForeignKey when i update in category im getting errors https://dpaste.org/m41b
Anonymous
@pyflare Thank sir for your response Now i solved that problem
shruti
I want to make a rest api in django which runs a python script for me. I am facing problem...any good tested resource is highly appreciated .I have searched on the net .but I don't get any good ..this is part of minor project . Is possible someone plz suggest any good blog resource
Sai
Hey I have asked it already. After all googling and django documentation I can able to write the test cases. But which are not identified and not running. any helping ✋
Zerihune
Helo guys I am unable to validate my model form data b4 submission any one can help
Аббос
is there anyone faced the following error? It is appearing when I add a product to the cart after running server 'NoneType' object has no attribute 'price'
Doragonsureiyā
is there anyone faced the following error? It is appearing when I add a product to the cart after running server 'NoneType' object has no attribute 'price'
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Mirco
is there anyone faced the following error? It is appearing when I add a product to the cart after running server 'NoneType' object has no attribute 'price'
Share your code but the error is clear You are trying to access an attribute with a instance that is basically None
Hamidreza
hi, my login_required when user not logged in redirected to localhost:8000/admin but after login not redirected to requested, i seted !!! how can fix this?
!ss@
sorry my friend it will happen again
cj
sorry my friend it will happen again
you'd better be sure it won't happen again
Anonymous
how can i filter a queryset by current month, in a datetime field, with mysql backend, with sqlite it work fine!
Hamidreza
Sharing the code is helpful if you wanna receive a proper help
@login_required(login_url='/admin/') def home(request): pass this first going to /admin/ and not come back to home page /
Anonymous
yourfield__month= Inside the filter
doesn't work with mysql 😔
Alex
doesn't work with mysql 😔
it means that you're doing smt wrong
Mirco
doesn't work with mysql 😔
It works, trust me It should be something wrong with your code And you can find info on Django docs
Anonymous
PurchaseOrder.objects.filter(date_order__month=11) always empty QuerySet
Mirco
@login_required(login_url='/admin/') def home(request): pass this first going to /admin/ and not come back to home page /
What you have written means after logged in, the user will be taken to /admin/ Not a good idea
Mirco
PurchaseOrder.objects.filter(date_order__month=11) always empty QuerySet
But do you have PurchaseOrder instances for November ? 😅
Anonymous
jeje
Alex
PurchaseOrder.objects.filter(date_order__month=11) always empty QuerySet
Are you sure that there is any row that satisfy that request?
Mirco
jeje
R u sure ? 😁
Mirco
stop stealing my phrases!
I was writing in the meanwhile you've sent it 😂
Anonymous
R u sure ? 😁
yes i have many