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
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%’
SOSO
thanks, i've already solved.
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
tushar
any solution how i convert this
Can anyone help how convert this data into list
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!
Anonymous
Django projects
parandhamudu
Any one know about jwt token creations in django
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 .
Anonymous
Mirco can i text you personally
Mirco
nope
Doragonsureiyā
Mirco can i text you personally
Read the rules before any activity: @PythonRules
Adyl
Guys I've been on Django for about half a year, can anyone recommend books?
Damilola
Guys I've been on Django for about half a year, can anyone recommend books?
Videos/youtube and courses O'Reily Django Girls Coursera Udemy Treehouse Coding for entrepreneurs (my favourite) To name a few...
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!
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
Morteza
can anyone help me
ask your question then we help
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".
Ankur Patel
ask your question then we help
I want to create a web app like cash karo
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
are you trying to filter on foreignkey field?
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
tushar
hlo i have data of json i send this data to onther template by this method
tushar
hlo i have data of json i send this data to onther template by this method
<a class="btn btn-primary" id="route" href="{% url 'homepage' %}?excel_data={{users}}">GetRoute</a>
tushar
and get this by
tushar
and get this by
help= request.GET.get('excel_data')
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
Morteza
<a class="btn btn-primary" id="route" href="{% url 'homepage' %}?excel_data={{users}}">GetRoute</a>
it's wrong to pass the users like this. you have to pass multiple users like this: ?excel_data=user&excel_data=user and ect. then in the view you can take it like this: excel_data = request.GET.getlist("excel_data")
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
tushar
to print data i use for users in user: then its print a data but same way i pass users
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