.
so ask directly questions about thme
Anonymous
i have issues with setting up GOOGLE SQL and BUCKET
my DOCKER image is ready . but not with google sql and bucket
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
google standard postgresql uri format
can you provide me any example?
.
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
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
.
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
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
Anonymous
👽, [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
define a field quantity_sold in your Product model. Each time there is a sale, you update it using F("quantity_sold") + 1. To get the most frequent products. Sales.objects.select_related("product").order_by("product__quantity_sold")
James
but i failed to get product name using foreign key
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")
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 ?
Sherlock
in django all kind of user input are taken from django forms am I right ?
Sherlock
No need
i didn't get is that mean i'm right or not, i'm just learning django..
saran
i didn't get is that mean i'm right or not, i'm just learning django..
You can use django forms or you can accept data directly from html input tag such text, date, checkbox whatever it is. It's not mandatory to use forms.
Anonymous
in django all kind of user input are taken from django forms am I right ?
If the input data will be stored in database, I strongly recommend you always use django forms unless you know how to do validation
Vxvek
Can we hide django /admin url from public??
Ben
Can we hide django /admin url from public??
https://stackoverflow.com/questions/4845239/how-can-i-disable-djangos-admin-in-a-deployed-project-but-keep-it-for-local-de
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
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
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
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
How react can help me in this
Anonymous
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
1. Not advanced, but basics, is to learn Django Rest Framework if you haven’t already. Then I’d say you should look at setting up taskqueue servers (Redis or RabbitMQ) and RPC calls (e.g. using the Pika library) 2. It’s not about languages, be clear about what you want to achieve … domain expertise or full-stack? Also, don’t forget about skills in DevOps, communication and project management.
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 ?
issues
Hi , how can we do bulk update in many to many field ?
models1 = models.forignkey.manytomany() It's field models 1 in models 2
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
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?