Anonymous
https://stackoverflow.com/questions/66184536/i-am-trying-to-create-an-writable-nested-serializer-in-django-but-cant-use-pos The full question, can anyone answer me with that please
Pirates Of
Not working what to do...
Any error or you are doing something wrong with serving and also use collectstatic command of manage.py
Anonymous
Can anyone tell me how to get a certain model from create(self,validated_data) method , for fucks sake
Anonymous
https://stackoverflow.com/questions/66184536/i-am-trying-to-create-an-writable-nested-serializer-in-django-but-cant-use-pos
Anonymous
Here is the full question that contains the code too, it brings me back the data the way I want but I can't post with an existing CountryName there
Anonymous
I want to post with an existing one
Jerome
hi, can I link google maps with python / django and capture the location in a database?
Use Open Street Map (free) with leaflet and/or django-osm-fields
Anonymous
Anonymous
This doesnt work either
Mirco
I do not know how to make it work, thats why
So go back studying Relationship topic on DRF official doc
Mirco
Can you help me make it work ?
Start studying that topic
Mirco
Otherwise you won't understand
Anonymous
I am, but I want to make this work asap
Mirco
I am, but I want to make this work asap
And then ? Your goal is only to make it work without understanding what u r doing ? So the first error u get, u will come back here ?
Mirco
I got back to docs but could not find but if u are npt willing to help ok
Anyway what you have written in that serializer has no sense Why creating a new Country in the serializer of Tesla model ?
Anonymous
I tried
Mirco
I want to get an existing country but I dont know how
You don't need any magic thing First you create a Country Second you create a Tesla by passing the just created Country id
Mirco
Django will do the relationship by itself with ModelSerializer
Anonymous
I cant do it in code
Anonymous
in create method
Mirco
I cant do it in code
That's why u need to study
Mirco
You don't need to override the create method
Anonymous
I know the idea
Anonymous
stop the moral
Mirco
stop the moral
Stop asking to show u the code.
Justin
How to open django ready projects
Mirco
You won't understand even if we share u the code hence it has no sense to share u the code to just copy and paste
Doragonsureiyā
How to open django ready projects
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Mirco
Rude
No, I'm giving u a suggestion that you don't want to understand
Rakesh
Becoz I'm new in django
Doragonsureiyā
Becoz I'm new in django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Shaxboz
what's difference abstractuser and abstractbaseuser
Mirco
Rude
https://realpython.com/django-rest-framework-quick-start/ Try to spend 10mins on this article and you will understand how a relationship works and how to code it In this article the relationship is between Post and Author In your scenario Country and Tesla
Anonymous
Thanks bro, but my idea was to understand it by solving that particular problem thats why I asked
Mirco
?
https://stackoverflow.com/questions/21514354/difference-between-abstractuser-and-abstractbaseuser-in-django#:~:text=AbstractUser%20is%20a%20full%20User,supply%20them%20when%20you%20subclass.
Mirco
Thanks bro, but my idea was to understand it by solving that particular problem thats why I asked
Could stop 10 mins and read what I'm sharing u and telling u ? Trust me you will solve your issue in a matter of mins instead of wasting time here
Pirates Of
How to use collectstatic command
python manage.py collectstatic
Shaxboz
Ok
Or ./manage.py collectstatic
Arezoo
How develop bigblubutton in django?
Hikmet
How abt you use django form tools?
Am using serializers, means django rest
Rohan
Anyone know how to capture image using front cam in django
Rohan
Webcam*
Krishna
I want to create carousal where i want to update images through admin site... I tried on bootstrap carousal but cant get it... Any resourse or help how i can do that?
Ali
you must link the bootstrap and add script of bootstrap before
Krishna
I have done that bro😅... But can't able to add logic where i can upload images in that from admin site
Hitesh
Bro you just have to give the link of the images where they are stored and try to wrap it in a loop
Hitesh
Exact path of the images is required
Hello world
is anyone here who used unity with djnago rest framework
Hello world
?
Sherlock
https://shrib.com/#SouthAfricanHedgehog7xZj96E
Sherlock
I had a variable ‘cap’ in views.py file and as {cap} in index.html file.. i removed both occurences.. ‘cap’ is not in my project.. still getting this error.. any help would be great..😐
Xerena🦋
Do you know the notification module for django rest framework integrated with slack teams sms etc .. I found this for slack, email, sms -> https://github.com/danidee10/django-notifs Do you have any different suggestions?
Sherlock
Nope.. never heard of it..😅
Mohammad
Hi, I have several tabs on one html page and when each one is clicked, the tab is activated and the corresponding form is displayed. I send the form values ​​in Ajax to the server to be saved, but the only problem I have is the form of other tabs. The tab that is active when the page loads, its form is validated. Other tab forms are never approved. Values ​​are also sent as initials, so there is no problem in sending field values. what's the solution?
Jo
Hi guys, I am using Django allauth in my project, I want to use celery to handle the mail sending of allauth, but I don't know how to integrate allauth with celery. I need help with someone that have had to deal with this use case before. They're little to no resources on integrating celery with allauth. Thanks
yeus
Like using triggers or what?
Sherlock
The project runs successfully.. i am getting this error when submitting a form.
Damian
Hello, people. One query. Does anyone know if it is possible with Django to release a mobile version for Android and IOS? A kind of In-app-browser as it exists in Cordova-Vue I mean ... Thanks
Renal Eki
hello everyone. how to use ModelFormset for getting value of the input field, and save it to table ?
Banjo
I did it but not working
Where did you store the staticfiles? If they're in the project folder level, you need to create a STATICFILES_DIRS for the files