Ильяс
?
Ильяс
template is working but nothing is displaying in my dropdown list
inchidi
template is working but nothing is displaying in my dropdown list
why you define name but didnt add 'name' here https://dpaste.de/CUYi#L12 ?
Ильяс
inchidi
yes, its highlighted if you open that link
Ильяс
oh... thanks
Ильяс
yes, its highlighted if you open that link
should it be like this? name = 'marka'?
Ильяс
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
Ильяс
then where is the dropdown data you want to show?
https://bitbucket.org/Achekeev/w8/src/master/
inchidi
in database
i mean which model
Ильяс
Marka model
Ильяс
i generated models from database
Ильяс
i mean which model
https://dpaste.de/jfL7
Anonymous
Remember to add <head> ... {{form.media}} </head> in template
Tried but no use, sorry i am using tiny mce lite, is that different from actual one.
Антон
/
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.
Prosto
200 - 2 I guess
it will calculate 198
Михаил
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
Mirco
i need exacly 200 - 2
use f-strings ( py 3.7 ) return f"200-{bucket.id}"
Rohan
return "200 - 2"
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
Prosto
No problem, you can use python
thanks my russian speaking bro
Михаил
Anonymous
https://www.youtube.com/watch?v=OTmQOjsl0eg&t=69s
Anonymous
only for beginner
Anders (izzno / gooood) 🇳🇴
Any help
What does the documentasion say ?
Anonymous
What does the documentasion say ?
Over ride form fields with tinymce widget and add {{ form.media }} in head tag of the template
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
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
If it works why touch it?
😂😂
黒の戦士
If it works why touch it?
😂😂😂
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
Anders (izzno / gooood) 🇳🇴
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
I think thats because in django admin you can generalize the input fields, in a fom model i think you have to be specific.
Anders (izzno / gooood) 🇳🇴
Look at the example again.
Anders (izzno / gooood) 🇳🇴