Mirco
Using UUID is suggested not only for image model
Erfán.R
Yo guys Do anyone have any django rest course for download?
.
Yo guys Do anyone have any django rest course for download?
Yes on youtube there’s plenty good ones you can download (i.e download data from the internet)
Mirco
It has no specific sense, but yes
Kene
Hi guys. Anyone know how I can get rid of field name in this error response: { "message": { "status": [ "You cannot do it" ] }, "status": "failed" } status is a validation error raised when trying to validate_status method in my serializer ***************** I want the response to be in this form { "message": "You cannot do it", "status": "failed" }
Adorilson
Hi guys. Anyone know how I can get rid of field name in this error response: { "message": { "status": [ "You cannot do it" ] }, "status": "failed" } status is a validation error raised when trying to validate_status method in my serializer ***************** I want the response to be in this form { "message": "You cannot do it", "status": "failed" }
To remove the field name "status" from the error response, you can modify the validate_status method in your serializer to return a string instead of a list. For example, you can change the method to: def validate_status(self, value): if value == "You cannot do it": raise serializers.ValidationError("You cannot do it") return value Also, you can use the error_messages attribute on the field to define the error message you want to use. status = serializers.CharField(error_messages={ 'invalid': 'You cannot do it' })
Kola
who knows why all the files from postgresql disappeared?
Лев
Can anyone explain to me how to pass from frontend category name instead of id? Right now I can only post new note object with category id Note object: content | rate | category
Doragonsureiyā
who knows why all the files from postgresql disappeared?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
rtg
Which is the difference in venv betwen "lib" and "lib64". Django allauth templates are in both of them. 🤔
Maxim
what does it matter anyway?
rtg
the second is a reference (symlink) to the first
djngo-allauth has templates in "bin/lib/allauth/templates", and i want to adapt to bootstrap. I want to copy allauth templates to my proyect and add bootstrap codes.
rtg
i am following a tutorial, but it is 2 years old and hasen´t got lib and lib64. For this reason i asked.
rtg
thank you!
rtg
Now i have a problem with django-allauth and google, because i login with google and says google: error 400. But i read that sometimes in minutes or more, the google console developer API is active. I will wait. 😉
Alek
Hello everyone, since I started using chatGPT, I noticed that I stopped to write code myself. I would always chatGPT to write it and correct it when I need. I have become lazier and lazier at writing code myself. Do you face the same problem? Should I stop doing that and write code myself? How can I incorporate chatGPT to boost my coding speed without just copypasting everything from chatGPT?
Alek
No because I prefer to code by myself and use my brain 🙂
Agree with that, I feel dumber after using chatGPT for a week. But it x10 my code output. I don't know what to choose in this situation.
Mirco
AI will never replace your brain
Mirco
Makes sense for common code snippet, but it's better to write code by yourself instead of copy / paste
Alek
Makes sense for common code snippet, but it's better to write code by yourself instead of copy / paste
Yeah, but I guess I would still use it to generate html templates, because I don't want to write them myself
Alek
It can make sense, but now you have to pay 😂
Does chatgpt enabled paid subscription? 😕
Mirco
Yes
Тимур
Hi guys, how to add a picture to the website in django?
A
Hi guys 👋🏻 Does anyone knows how to implement search through pages (and list all of the ones that content matches search query) ? If it’s stored not within the database but passed in views as plain context :) Thank you 😊
Mirco
A picture where ?
Don't write in pm
Тимур
sorry
Charly
Hi guys, how to add a picture to the website in django?
So the same as any HTML site, jsut make sure to put theimage on your static dir
Тимур
i dont really know html, so i know the command <img scr='', but i cant put in it my image
Charly
Тимур
I need it for a project, i have a little time to make it over..
Тимур
thanks for help
Charly
thanks for help
Well explain why you can't put your image in a <img> tag
Marouane
Hi , friends I’m new in this , can you help me thanks ❤️❤️
Marouane
When I can starting learning ?
Marouane
Sorry where 🤦🏽‍♂️
Doragonsureiyā
When I can starting learning ?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Marouane
Tanks my friend
Lord
!paste
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Lord
https://linkode.org/#BM1FCFJeqC37xGGD4eX3o7 ; am getting this error whenever I tried migrate 'django.db.utils.IntegrityError: The row in table 'RelatedAPI_menuitem' with primary key '1' has an invalid foreign key: RelatedAPI_menuitem.category_id contains a value '1' that does not have a corresponding value in RelatedAPI_category.id.'
Yash
hello everyone some please help me in django rest framework assignment ?
Doragonsureiyā
hello everyone some please help me in django rest framework assignment ?
No one can help you until you explain your difficulties.
Olawale
Hi guys, how to add a picture to the website in django?
http://www.learningaboutelectronics.com/Articles/How-to-create-a-video-uploader-with-Python-in-Django.php
Kola
i downloaded the postgresql application and there were files "template1" and "postgresql"
Kola
and both files disappeared and if you delete and download the application. There's only a launch application button. but no initialization
Azin
Hello everyone Some please help me I want to write django rest framework test api authentication i dont know how should I do
Charly
Azin
Start by reading the Django rest framework documentation regarding authentication
I’ve read it but I didn’t get the point Because I need it for test first I need to write captcha test Then login and use token
Kola
I don't have an idea
I was looking for used ports on the computer. but everything is free and nothing works in the background
burialstance
If I emit model signal in thread running via management I can receive that in main app?
Doragonsureiyā
Chatgpt answer me)))))))
Read the rules before any activity: @Rules_for_Python
Артемий
!ol
Doragonsureiyā
Python groups in other languages (‼️ Not managed by us ‼️) Amharic @python_amharic Arabic @arabipython Azerbaijani @azepug Chinese @pythonzh French @python_francais German @pythonde Hebrew @pythonisrael Hindi @pyhindi Tamil @pythontamilcommunity Indonesian @pythonid Italian @python_ita @pythonita Kazakh @python_kz Malaysia @pythonmalaysia Persian @pyfarsi Portuguese @pythonbr Russian @ru_python_beginners @ru_python @python_scripts Spanish @PythonEsp Swahili @python_eafrica Turkish @python_tr Uzbek @python_uz If you have an (active) group you want to add, ask in the meta group, link in the rules page.
S
How can i give object to parametr in model function
chipolino
How can i give object to parametr in model function
Does models instance function do not get parametr?
Jayanthi
Hey i have query it return the rank greater then 1...
Jayanthi
I have made an for loop it takes more time exicutive the query... After pagination also ... How to limit it anyone please help
chipolino
How can i give object to parametr in model function
You can define attributes (method and variable)of models that do not safe in data base.
Jayanthi
I am fetching from the data base ..
lintang aji pangestu
How to import list Users csv in Django Admin using Django-import-export
zeus
How to get latest entry form db tables