Михаил
sugest you to use 'allauth' instead of qauth2
I looked, but found no way to make access to my API via oath2, that is, I do both the resource server and the authorization server to access the resources.
P.S. Sorry for my English
Manish
hii
Manish
can i import export xml data to django model
Manish
i searched on web but not found any way to do that.
Manish
Manish
but what serialize means?
inchidi
https://en.wikipedia.org/wiki/Serialization
Sencer
Is there any free API for Country/State/City data?
Manish
Manish
inchidi
thanxx buddy
btw if you are not familiar with json, maybe you want to read about it first
Sencer
@Rudr
Manish
Manish
but not with xml
Manish
@Rudr
bro please tag me properly
Manish
😁😁
inchidi
but not with xml
nowadays everyone tend to prefer json than xml because xml usually larger than json, etc. so i would like to recommend you to use json than xml if possible
Milan
Sencer
@Rudra,
Sorry for mistaging you :).
I want users select country / state / city via dropdown menus. But I don't have any grouped address information. So I need to use an API for this if available.
Sencer
Milan Thank you for that suggestion.
Mirco
https://github.com/SmileyChris/django-countries
This one is cool as well
Mirco
Django app to integrate and then u can use ORM to query all info u need
even flags 😂
Mirco
There's already a select widget
And REST output format using DRF
Manish
Manish
Adonis
Manish
Manish
also there is a bug with xls in python 3.6
Rajjix
the condition should be outside your container
Rajjix
or try if posts > 0 assuming posts is a queryset u passed from your views
Rajjix
Can you show where posts is coming from,
Rajjix
...
Rajjix
Don’t
Rajjix
share ur view pls
Rajjix
Yes share it pls
Rajjix
Wait i miss understood something, so if there are no posts it’s not showing the first block, your problem is with the else block being rendered either way with or without posts
Rajjix
Right?
Rajjix
and also try indenting the else tag it may help
00skeptic
So if I am adding a new periodic task in celery inside a django project, how will I add it to the periodic tasks table in database for schedulding ?
Manish
i found no issue.
Manish
there is problem somewhere else perhaps in layout
Manish
because if else block is also executing then h1 tag should executed too
Manish
and i cant see any codes of else block on your page in desktop view
Manish
check your layout for mobile view
Manish
there should issue with css media queries
Manish
remove fclass from else block then inspect the page with no content ie. bulma tag
Manish
page
Manish
show me
Mahdi
I have Student and Teacher model and a User model that has a one to one fk to each of them. I want to signup the student and teacher can any one help me please?
Anonymous
the block error, so they answered me on reddit, it's because blocks are rendered independent of the conditionals
Anonymous
Mirco
No screenshots pls
Use pastebin or tool like that
Anders (izzno / gooood) 🇳🇴
Is there a way to make a models composision unique, its a model consisting of a name, and two foreign keys, i would like the the composision unique, not the name. The combination of the name with the two foreign keys, that way i can have multiple composisions with the same name.
George
cj
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Why do you want that?
So things can have the same name, but not the same content
George
George
You can explain this better :(
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
George
yes, omg
Anders (izzno / gooood) 🇳🇴
Its an API, so the name of the process can be the same but depending on which groups the object is in the "price" can be different
Anders (izzno / gooood) 🇳🇴
So serving the content with ?object_group=something returns the right one... And idiotproofing so noone can brake it is never a bad idea...
George
Mr. Rude
Mr. Rude
Noice
Anonymous
Does any one know how to build star ratings in django
Djifferson
Djifferson
Google it
Anonymous
I googled bro i got it in pypi
Anonymous
I downloaded the code from github
Anonymous
But their is no manage.py
Anonymous
There is setup.py
Anonymous
How to execute it?
Djifferson
Python setup.py
Anonymous
Its not working bro