Ильяс
?
Ильяс
template is working but nothing is displaying in my dropdown list
Ильяс
inchidi
yes, its highlighted if you open that link
Ильяс
oh... thanks
Ильяс
I am a beginner so sorry for awkward questions)))
inchidi
not, it should be like fields = ['marka', 'name', ...and other fields of Marka model]
Ильяс
aaaaaaaa
Ильяс
got it
Ильяс
inchidi
then where is the dropdown data you want to show?
Ильяс
in database
Ильяс
Ильяс
Marka model
Ильяс
i generated models from database
Антон
/
Prosto
Hello djangers! Easy question. I have some func thats returning digits.
return 200 - basket.id - and i get 198. But how can i get 200 - 2 (without calculations)
And yes, i tried google
Михаил
What's your question?
Михаил
It may be easy, but it's not trivial to understand what did you mean
Prosto
i need digits without calculations 200 - 2(returning 198), and i need to return exacly like 200 - 2, without calculations
Михаил
return 198
Михаил
no calculations
Prosto
and how to get this 200 - 2?
Михаил
200 - 2 I guess
Михаил
Describe your question, please. Make it more informative. Or maybe there is someone who can better understand you.
Михаил
So?
Prosto
but i need 200 -2
Михаил
You want to calculate with no calculations, right?
Prosto
i dont need calcutaions
Rohan
return 200 - 2?
Prosto
i need exacly 200 - 2
Rohan
return "200 - 2"
Rohan
Prosto
Prosto
thats what i need
Михаил
literals
Mirco
thank you!
python 3.7 or there's a backport for previous versions
Rohan
For a second I thought he wanted to compute 200 - 2 without calculating it...
Rohan
🤦♂
Prosto
sry, english is not my native)
Михаил
No problem, you can use python
Mirco
Михаил
Anonymous
https://www.youtube.com/watch?v=OTmQOjsl0eg&t=69s
Mirco
Anonymous
only for beginner
Anonymous
Anonymous
Anders (izzno / gooood) 🇳🇴
Any help
What does the documentasion say ?
Anders (izzno / gooood) 🇳🇴
Your not following the docs
Anders (izzno / gooood) 🇳🇴
As far as I can see your not specific as to which field you want to use the widget
Anders (izzno / gooood) 🇳🇴
At least that's what I notice...
dynamic
Hi, whats the difference between the JsonBField and JsonField
Kueen
Hi! I need help with django password reset system
Kueen
Whenever a click the password reset email link it redirects me to login page
Kueen
It should redirect to password reset confirm page
George
Anders (izzno / gooood) 🇳🇴
It has to do with how you can access data in the singel field on different levels.
Anders (izzno / gooood) 🇳🇴
True json
Kueen
dynamic
okay @izznogooood @hyunlee1o , thanks, currently I have JsonBField using the django-pgjson, since Django started supporting JsonField natively from 1.9.
Should i be migrating from JsonBField to JsonField? And if yes, how should i be doing it?
Anders (izzno / gooood) 🇳🇴
If it works why touch it?
Mirco
Anonymous
How can i add a chat bot to my django app
Anders (izzno / gooood) 🇳🇴
You build a chatbot in Javascript, then you add it to your django project.
Anonymous
Your not following the docs
I did the same for admin page there it is working but for blog app it is not working even datetime picker is not visible, i will send here code
Anonymous
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Look at the example again.
Anders (izzno / gooood) 🇳🇴