tushar
views.py excel_data_from_html = request.GET.get('excel_data') now i want to convert this data into list but got eror
tushar
format of {{users}} data is json that is <QuerySet [<Excel_data: Excel_data object (1)>, <Excel_data: Excel_data object (2)>, <Excel_data: Excel_data object (3)> pls solve that
tushar
SOSO
Hi
SOSO
Can anyone help me?
hour_from = datetime.datetime.strptime(str(hour_from), "%Y-%m-%d %H:%M:%S")
ValueError: time data '2021-07-15 10:00:00+00:00' does not match format '%Y-%m-%d %H:%M:%S%’
Mirco
SOSO
thanks, i've already solved.
Mirco
Deleted
Hey guys, how to disappear the checked checkboxes after clicking a button? https://stackoverflow.com/questions/68390472/after-click-a-button-the-checked-check-box-in-a-list-should-disappear
Mirco
tushar
Data type
tushar
List
Mirco
Data type
what does ExcelData contains ?
Mirco
show an example of the list u wanna get
tushar
Okay
tushar
Later I show you
Mirco
later I will answer u if I have time 😊
tushar
Oaky no problem tnq for respond
rtg
Hi! This show all installation. But i need filter. How can i filter "self"? comunication_point = models.ForeignKey ('self', null=True, on_delete=models.CASCADE, blank=True, related_name="comunications_p")
rtg
Thanks!
kuzmich
Anonymous
Django projects
parandhamudu
Any one know about jwt token creations in django
Mirco
Doragonsureiyā
Any one know about jwt token creations in django
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Anonymous
Hey I am new at django. I created a custom user called Customer. I also created a login form (django forms) and the authentication is for that login form itself. Since this form creates a new user but not customer is there any way to create customer model whenever a new user model is created?
Anonymous
Please 🙏 help me out .
Mirco
Anonymous
Mirco can i text you personally
Mirco
nope
Mirco
Adyl
Guys I've been on Django for about half a year, can anyone recommend books?
Salesforce
Any one needs python rest api django full course by durga sir ping me.
rtg
¿Is this correct in model with this filter? comunication_point = models.ForeignKey ('self', on_delete=models.CASCADE, related_name="comunications_p").filter(id=1)
rtg
How can i filter in model using self? Thanks!
Morteza
Ankur Patel
Hello Everyone
Morteza
i dont get it
do you trying to filter on related name?
or it is seperate?
Ankur Patel
I want to make a big project
Ankur Patel
can anyone help me
rtg
why you do that?
Because it is a installations list. But all are not "comunication point installation". When the user select a communication point, he want to see only installations that are "communication point installation".
rtg
I don't know if I have explained it well.
Ankur Patel
But, I have a problem to fetch all the product of amazon from my site
Morteza
Morteza
are you trying to filter on foreignkey field?
Ankur Patel
rtg
when we have a model por example named "Installations". And we have a field with self, we can see all installations in select form. Ok, but sometime we need not to see all installations. We need to see filtering de self installations.
Morteza
you are trying to make it complicated
btw, if i understood, you need to do it in admin.py and overwrite the forms that you need to change the behavior of the fields that you want, addform changeform and ect.
John
video_url = models.URLField(blank=True)
is_video = models.BooleanField(default=False)
is there any way to create depended model. means if video_url field is empty so is_video is store False or if there any value so the value is True
Salesforce
Any one needs python rest api django full course by durga sir ping me.
Firdavs
hi everone in the heroku application error do it
rtg
Harsh
tushar
hlo i have data of json i send this data to onther template by this method
Morteza
tushar
and get this by
tushar
now i got eror if use for loop for i in help:
print(i.sheet_id)
return HttpResponse(i.sheet_id)
Morteza
you wanna pass list of users?
tushar
yes i wanna pass of data in list
tushar
and get on next page
tushar
{{ users }} having contain data of model but its in json type and on next page i wanna to get list type
tushar
actually this user conatain data of tabel. tabel having 9 row
Morteza
you have to break up the users list in multiple excel_data parameters
tushar
for print i use
Morteza
tushar
to print data i use for users in user: then its print a data but same way i pass users
Morteza
Morteza
it is not queryset!
tushar
okay
tushar
one question
tushar
if i wana pass data to next page data in json how i pass and get that
Morteza
why you don't using drf