.
so ask directly questions about thme
Jitendra Kumar
One is Customer_Login table and another one is Customer_info table
I want a Customer_id that's field autofield and using foreign key .
Both of table customer_id
How to right a models.py
Please any give solution
.
Jitendra Kumar
How to write
Anonymous
dont get it
how can i connect with google cloud postgresql
.
google standard postgresql uri format
AV
Hi everyone! I need a help), is there any possibility track any changes on a template which isn't bound with any modelForms? I write a view-class which by yourself uploads a data from the two models, this data contains checkboxes, and my desire - choice any checkboxes and save them with the post method, but how can i get a current template state? Thanks in advance!
Anonymous
Jitendra Kumar
.
can you provide me any example?
https://www.postgresql.org/docs/9.3/libpq-connect.html
https://stackoverflow.com/questions/3582552/what-is-the-format-for-the-postgresql-connection-string-url
.
get ur uri from google cloud
Anonymous
Anonymous
thanks
licensed
can i change timezone of DatetimeField instance without use pytz?
Because it's an specific thing, i wouldn't like to install pytz for while
Maxim
.
Does django already have pytz in deps?
.
Yes, lol
Rug
I'm having a trouble run periodic tasks on my module created for Pretix. It is a django ticketing system. I figured that I had to set up a cronjob that runs the management command run periodic and other things to install pretix but I don't know how to set a task or function run periodically inside my plugin
kuzmich
Nasasira
What do you think might be the issue.
I set up AWS to handle my static files. It did work and when you inspect the images the URL shows they being served from AWS but unfortunately they cannot show.
James
hey everyone i need some help: I have two models Product and Sales model , I want to get the name of frequently sold product in Sales model using product_id which is a foreign key in sales model. How should i do this
James
👽, [02.08.21 01:10]
hey everyone i need some help: I have two models Product and Sales model , I want to get the name of frequently sold product in Sales model using product_id which is a foreign key in sales model. How should i do this
James
James
but i failed to get product name using foreign key
Anonymous
Anonymous
Can you provide me multi role and permission example . ?
Anonymous
but i failed to get product name using foreign key
That's true because you're actually counting the products in each Sale and saving the result as an attribute on the Sale objects. If your products have name as as a field you can do:
Sales.objects.values("product__name")
Anonymous
saran
I'm getting an error while running cron job with django..
ModuleNotFound: no module named 'api_ver2.cron'
saran
Any mistakes here.. api_ver2 is my app name
saran
I have declared a funct my_scheduled_job in that app
saran
Crontab - l shows cronjob with Crontab run with id..
saran
What might be the issue here any suggestions
Sherlock
in django all kind of user input are taken from django forms am I right ?
Jitendra Kumar
Sherlock
in django all kind of user input are taken from django forms am I right ?
issues
saran
Sherlock
No need
i didn't get is that mean i'm right or not, i'm just learning django..
Sherlock
Sherlock
Vxvek
Can we hide django /admin url from public??
Vxvek
Ben
Np
Anonymous
If I want to register multiple users in one template what should I do with out using import_export module?
yusof
Hey i wanna make an endpoint like RETITLE that just admin user can use it
Does anyone know what should i do?
Thanks
Mirco
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Hello everyone
2 Questions
1: what are the advanced subjects in Django?
consider one who has learned to develop an online shop, and desire to be more professional
2: along with Django, which programming languages do you suggest to learn to work professionally?
thank in advance
Developer
Hi
I have data in this formate in java script
[
[{a1} , {a2 }, { a3}],
[{b1 } , {b2 }, {b3 }],
[{c1 } , {c2 }, { c3}],
]
What I want
[
[{a1} , {b1 }, { c1}],
[{a2 } , {b2 }, {c2 }],
[{a3 } , {b3 }, { c3}],
]
Developer
Anyone can help ?
kritikos
Hi
I have data in this formate in java script
[
[{a1} , {a2 }, { a3}],
[{b1 } , {b2 }, {b3 }],
[{c1 } , {c2 }, { c3}],
]
What I want
[
[{a1} , {b1 }, { c1}],
[{a2 } , {b2 }, {c2 }],
[{a3 } , {b3 }, { c3}],
]
you should transpose your array.
kritikos
Hi
I have data in this formate in java script
[
[{a1} , {a2 }, { a3}],
[{b1 } , {b2 }, {b3 }],
[{c1 } , {c2 }, { c3}],
]
What I want
[
[{a1} , {b1 }, { c1}],
[{a2 } , {b2 }, {c2 }],
[{a3 } , {b3 }, { c3}],
]
const transpose = (data = []) => {
return Object.values(data[0]).map((_, colIndex) =>
data.map((row) => row[colIndex])
);
};
kritikos
Ayush Singh
Does anyone knows how to use webcam and send live video to django server via javascript
If anyone knows then please help me
Ayush Singh
Ayush Singh
How react can help me in this
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Вин Король Саксов
Вин Король Саксов
Anonymous
Sorry, of course that’s correct! GraphQL and Websockets are good ones 👍🏼
VISHNU
For tags in row['Tag'].split(","):
Row['Tag'] is like ["data1", ,"data2"]
While saving to db how to avoid that blank to save in db other than that getting from tag for loop need to save.
Optimus
Hi , how can we do bulk update in many to many field ?
Optimus
issues
i need to do bulk update
author = Author.objects.get(pk=1)
books = Book.objects.filter(**kwargs)
# say this returns 100 objects
# each loop here will hit the database making it really inefficient
#for long lists
for book in books:
book.authors.add(author)
book.save()
V
issues
#With models
class Book(models.Model): title = models.CharField(max_length=100) year = models.IntegerField(max_lenght=4) author = models.ManyToManyField(null=true, blank=true) class Author(models.CustomUser): # some fields
Optimus
Optimus
i have 5k data , this for loop will take time in itterations
Optimus
i m trying to do model.m2m.set(list)
Optimus
but not working
issues
Ok
Firdavs
obj7 = Video.objects.filter(user=request.user)
print(i.subscribe.count())
how I summed this numbers pls help me
Вин Король Саксов
Ædel
are
template = loader.get_template('index.html')
return HttpResponse(template.render({}, request))
and
return render(request, 'index.html', {})
any different? if yes, how?