Mihail
Ankit
https://pastebin.com/9WBzJAm2
can anyone look into it and suggest something ??
thank you for your time
Hai
Hello,
Hai
Could i deploy django on windows 10 server
Kh
hi all, i have an app, and celery should run it on every 10 minutes, as a broker i use redis, however it does not tun, manually from shell it works? did anyboby face with this kinda problem?
RK
I deployed django project in Heroku server... working fine but when I set debug=False..raise server Error..How will i Resolve the issue
RK
SERVER 505 error showing
Maximiliano Exequiel
I wanna send the id of a model and from the django side only update the state. how can I do this? Do you have any example at hand or idea to guide me?
Mirco
Maximiliano Exequiel
yep.. its django rest framework
Maximiliano Exequiel
I DONT NOW IF it the best practise but works
Hai
Yep. I have try on to deploy on my computer windows 10. But it's seem hard 😅
Hai
Almost documents on the internet is talk about windows server host
Hai
So i can not make sure about deploy django on windows 10 server
Arpit
'DIRS': [os.path.join(BASE_DIR, 'build')], What does BASE_DIR and build indicate here? Can anyone please explain?
Mirco
Ali
How can i remove an object after getting it
Example:
M=Likes.object.get(Id=id)
Ankit
Ali
Ankit
Shrikrushna
Phirun
Hello, I just did "pip install django-ckeditor" but I can't import it. It says "Import "ckeditor.fields" could not be resolved" in model.py
Anandu
AttributeError at /accounts/register/
type object 'Account' has no attribute 'objects'
Anandu
I got an error
Djasur
Does not send mail on localhost. On real server works
Есбол
Kapil
hello everyone
Kapil
i faced this error
Kapil
I searched it but didn't find solution
Kapil
so anybudy help me
Kapil
duplicate key value violates uniquie constraint
Doragonsureiyā
duplicate key value violates uniquie constraint
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
Kapil
I am trying to generate the barcode because of the value of different fields and when I am saving I am getting this error
Николай
Is there any different approach to rename admin field using AdminModel rather than @display or short_description, which suppose field to be read-only?
Christian
I searched it but didn't find solution
I don't know how you searched (or if you searched at all) because of course there are a lots of results for that error: https://www.google.com/search?q=django+duplicate+key+value+violates+uniquie+constraint
But basically you have defined a field with a unique constraint and now you are trying to insert same value twice. Why is that happening? Only you can know...
Kapil
No no I try new value
Kapil
Successful save in database after saved give error
T2ABIZZ
i have product model and owner=foreign key to user,I only get owner.id , how can I get owner.email?
Mirco
OceanMan
T2ABIZZ
Field name product.user.email is not valid for model Product.
Mirco
T2ABIZZ
Still not working
T2ABIZZ
Only owner_id is working
T2ABIZZ
I want them in the serializer
T2ABIZZ
Mirco
how?
I told you
Read the message carefully
Mirco
email = serializers.CharField(source='owner.email')
Mirco
And include it inside fields
Mirco
how?
Write here and use pastebin.org for code sharing
T2ABIZZ
T2ABIZZ
like this?
Mirco
T2ABIZZ
NameError: name 'serializer' is not defined
Mirco
Arpit
C:\Users\Shivam\OneDrive\Desktop\AuthSystem\frontend>npm run build
> frontend@0.1.0 build
> rm -rf ../backend/build && react-scripts build && cp -r build ../backend/build
'rm' is not recognized as an internal or external command,
operable program or batch file.
T2ABIZZ
by from rest_framework import serializers ? already did it and I get the same error
Arpit
Mirco
Mirco
T2ABIZZ
T2ABIZZ
Got AttributeError when attempting to get a value for field email on serializer Productserializer.
The serializer field might be named incorrectly and not match any attribute or key on the Product instance.
Original exception text was: 'Product' object has no attribute 'user'.
Mirco
T2ABIZZ
never mind i fixed it thnx a lot
Mirco
T2ABIZZ
I wrote source='user.email' insted of source="owner.email"
Mirco
Mirco
T2ABIZZ
you forget 's' in serializers
Mirco
You are smart enough to add it 😄
T2ABIZZ
:v
T2ABIZZ
Mirco
Btw did you understand what you copy and pasted at least ?
We know it works, but you get why it works now ?