Xyz
Has anyone tried implementing social authentication with djoser?
None
I create new class class AllBirthdayPage(Page): class Meta: verbose_name = _('All Birthday Page') verbose_name_plural = _('All Birthday Pages') And added to list of type page. When I try to create new page with this type I get 404
None
and yes I did makemigrations,migrate
Rajjix
Then don’t create a new page with this type. problem solved 🤷‍♂️
None
Then don’t create a new page with this type. problem solved 🤷‍♂️
Nope. I found the answer. I was trying to 'add_subpage' , not 'add_page'
Rajjix
Smart boy 👍
Adil
Hello everyone. İve been learning django not for a long time. What projects can u advice me to work on?
Rajjix
Isn’t it just bad when ur learning something but you don’t know why you’re learning it?
Anonymous
Can't say if it's bad
Anonymous
But, it's not good
Adil
Sometimes you just get of of ideas
Vladyslav 🇺🇦🇪🇺
Hey folks
cj
Sometimes you just get of of ideas
did you follow the official tutorial?
Vladyslav 🇺🇦🇪🇺
Need to complete project for crm on django. Can anyone do something like that?
Vladyslav 🇺🇦🇪🇺
Need opensourse project for a base
Adil
did you follow the official tutorial?
not fully, but in process
cj
not fully, but in process
first finish it before looking for a project to work on
Adil
ive made a few simple applications for own use, but a bit stuck of what to do
Rajjix
ive made a few simple applications for own use, but a bit stuck of what to do
don’t force yourself to do/code something it will turn out to be useless most of the time. Have some fun reading a book. Sooner or later it will hit you
Anders (izzno / gooood) 🇳🇴
Can anyone reccomend a good note/snippet taking app with tags and some sort og categotizing thats cross plattform. Something I can use as a sysadmin and for coding?
Anonymous
Dynalist
George
Good afternoon, i got a question: How do you put the id of the object in a django form? I can only put a single field i get this: <option value="Value1">Value1</option> i want this: <option value="pk of value1">Value1</option> my form is class SelectForm(forms.Form): name = forms.ModelChoiceField(queryset=Object1.objects.values_list('name', flat=True))
George
i may have to mess with templates 🤔
George
im hungry and im thinking badly xD
Mirco
Get pks and names from your model , not just names
Anonymous
https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
Anonymous
Refer this its like a twitter based Project you will know the ins and out of the framework
Anders (izzno / gooood) 🇳🇴
django-grappelli admin interface has that widget built-in
I am testing grappelli with postgres now but i cant find any widgets or documentasion on it. It still shows HStore and JSon fields with a textbox input.
George
Get pks and names from your model , not just names
i put this later into a dropdown :/
George
i tried but it broke
Anders (izzno / gooood) 🇳🇴
Google keep
google, no way ;)
Anders (izzno / gooood) 🇳🇴
Try this one
Thanks, i saw that, but Id like json.
Anders (izzno / gooood) 🇳🇴
I know there are widgets, I thought it was in the grapelli extension. I does not matter much as I did not like the extension hehe.
Anders (izzno / gooood) 🇳🇴
Its easier for "others" to query json that the HStore fields.
Anders (izzno / gooood) 🇳🇴
(and it only supports strings)
George
Anders (izzno / gooood) 🇳🇴
Thanks, i saw that, but Id like json.
its very nice for Hstore though!
Anders (izzno / gooood) 🇳🇴
George
How did you try ?
well, it's my dropdown form i'll post it entirelly
Anders (izzno / gooood) 🇳🇴
with JS ?
George
https://hastebin.com/xuwadefefe.rb
George
with JS ?
no, it's not a js issue
George
js would be a really dirty patch
Anders (izzno / gooood) 🇳🇴
Your not getting the ID ?
Anders (izzno / gooood) 🇳🇴
have you looked at forms.Form ?
Anders (izzno / gooood) 🇳🇴
yes, does it usually have the PK / ID
George
yes, does it usually have the PK / ID
well. if you read the init
Anders (izzno / gooood) 🇳🇴
I dont get it...
Anders (izzno / gooood) 🇳🇴
You want the PK to show up in the form ?
George
Good afternoon, i got a question: How do you put the id of the object in a django form? I can only put a single field i get this: <option value="Value1">Value1</option> i want this: <option value="pk of value1">Value1</option> my form is class SelectForm(forms.Form): name = forms.ModelChoiceField(queryset=Object1.objects.values_list('name', flat=True))
Anders (izzno / gooood) 🇳🇴
ahh
Anders (izzno / gooood) 🇳🇴
can you use prefill and template logic ?
Anders (izzno / gooood) 🇳🇴
or rather have you tried
Anders (izzno / gooood) 🇳🇴
I ment pre populate
George
I ment pre populate
well, i prepopulate this on index/homepage load
Anders (izzno / gooood) 🇳🇴
This might have nothing to do with your issue but would not popping 'spectrum' remove it from your super init?
Anders (izzno / gooood) 🇳🇴
yes but .pop also removes it from the dictionary? Right ?
George
yes but .pop also removes it from the dictionary? Right ?
i haven't thought about it but i don't need it anymore
Anders (izzno / gooood) 🇳🇴
sure, sorry I could not be of any help. I missunderstood your original question.
ozan
Which website use django?
ozan
Popular websites
Mirco
Thanks, i saw that, but Id like json.
Mmm never done before but have you tried to render a json field model attribute ?
George
😡
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Default admin widget anyway.
Mirco
Open a ticket to Django 😂
Anders (izzno / gooood) 🇳🇴
But there are widgets out there. I will have a look at them. I was just trying the "itallian named theme" thingy.
George
Open a ticket to Django 😂
did you get more insight into my problem? i thought of just removing the list but it would fuckup
George
it's ok as it is
Mirco
Ook
Anders (izzno / gooood) 🇳🇴