Enigma
def get_queryset(self):
return Task.objects.all()
mhamed
Yup i try that but i get error matching query does not exist
Enigma
Enigma
def get_queryset(self, *args, **kwargs):
request = self.request
taskId = self.kwargs.get('pk')
return Task.objects.filter(id=taskId)
mhamed
Enigma
mhamed
Enigma
mhamed
Владислав
guys, hello everyone, who knows how to extract files from the Steam Workshop? just doing an autoparser of mods
Владислав
if there is a guide, a link, please share
Anonymous
Anyone who has ever hosted django on cpanel and was successful?
Randy
You need to specify the 'select2' class for <select> </select> (ModelCHoiceFIeld). Can't set class for count_type.
https://dpaste.org/6zOx
Zey
I did null=True,blank=True then also I am getting this error
django.db.utils.IntegrityError: NOT NULL constraint failed: new__home_customers.address_1
Prince
Zey
Zey
Zey
Zey
Prince
Tridip
Does anyone know how to send email using templated html with css and images??
Dev
Anonymous
How to access parent model objects and use them in templates
Anonymous
Enigma
Tukhtamurod
Enigma
Enigma
Anonymous
FOREIGN KEY constraint failed
Anonymous
help plz
Enigma
Anonymous
thanks a lot i fixed it
Ⓗ Adinorab | I'm #HAPI
Hi guys, I know django a bit but i'm stuck on a peculiar problem.
I have 2 models, A and B, with a m2m relationship through a model C.
BUT I need 2 fields in A to make reference to C. When I do that django tells me that I have two m2m relations through the same intermediate model
Ⓗ Adinorab | I'm #HAPI
By setting 2 foreign key from C to A, I have no error message, but it doesn't seem to be elegant
Ⓗ Adinorab | I'm #HAPI
Anyone got an idea ?
Tridip
Dev
yes
Dev
go thru their docs please
190030260
Anyone suggest me tutorial or documentation to get graphs,i.e visualization in admin panel.
Richard
Hello everyone!
I cant handle a problem with id.
I need to get an id of record that i created through form to redirect to record just created.
Tridip
Vishnu
Can anyone help me with DRF model translation with a simple example
Vishnu
Which Is the easiest and efficient way of transnational of models
Bunty chhatri wala..
Richard
ST
Hi, i have 2 models. Thread and Comment (has Foreignkey reference to Thread model) Thread has discussion column (example of value - 'example.com/id1000') Comment has thread_link column (same values as in discussion column) So how can i create object in Comment model with the ForeignKey reference if value exists in Thread model. If it doesn't i want ForeignKey set to None. Code and example here - https://pastebin.com/1Eq1uJ3q
Anonymous
Can somebody help me ... I have to include javascript files in django template ... Also I want to call my django APIs from javascript files using {% url %} tag, when I directly write code in script variable it is working but whn I added a javascript file and copied my code there it's not working
Oleksiy
Jaime
I have a question. as I do for example in my model I have two fields. one is boolean and the other charfield. I would like the template to enable the charfield field, depending on whether the boolean field is true, or if you click false it disable it. i know it is with jvescript. but someone could help me more detailed ..thanks.
Enigma
Zey
How we can pass data from radio button to next page?
Владислав
Friends, advice from programmers of django lovers is needed.
What is the best way to implement likes? At the beginning of the project, you need to hook them to 4 models. Through GenericForeignKey or through m2m fields, but then there will be +4 table.
Njain
How can I send same name multiple values in database
Njain
Any ideas
Charly
#!/bin/sh Inَactive
Njain
you need to explain this better
I have JavaScript to increase row numbers in table and if we click on add new row the row has been added and its ID + 1 but name is same so so if I I click on add new row the name is same but ID + 1 so now if if I am save multiple values it saves only one value
Zey
can we save the data of radio button using django template language?
Zey
Doragonsureiyā
Anyone?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work.
Have a nice day 😊
Stv
I need a good resource that shows how to deploy a full stack Django/vuejs app on heroku. I have tried using this https://medium.com/@williamgnlee/simple-integrated-django-vue-js-web-application-configured-for-heroku-deployment-c4bd2b37aa70 but ran into series of issues related to versioning. My project is set up with a Django backend serving API endpoints to vuejs frontend.
Anonymous
you haven't asked it anywhere
Randy
'Post' object is not callable
https://dpaste.org/3u5q
Morteza
Rushabh
Rushabh
Like for i in thread.(related_name).all:
And you get all the thred objects...
Rushabh
thread = models.ForeignKey('Thread', related_name=skokkaweb, null=True, on_delete=models.SET_NULL)
Akash
I have been hosting multiple django apps in a single VPS
Now I am thinking to either upgrade yo a dedicated server or get a separate small VPS for each app.
What will be the better option?
Rushabh
Rushabh
Or each application run on default time zone ?
Akash
Rushabh
Ohk ... I'm trying to implement each application have there own timezone...
Rushabh
Like subdomain.. something like that..
Akash
You can easily do that by passing TIME_ZONE as env variable