Anonymous
Anonymous
Await
Jamil
nope.
Jai
Anas
What is your doubt?
How to do that one? Or any reference you have.. Actually I am new to this Django development
VarunTheLord
Alright
Thanks for the books
Jamil
Jamil
what does it put
Jamil
in the database table
Jamil
in the name column
Jamil
even if there is no default value
Jamil
and name isnt specified when creating the object
Jamil
Jai
Jai
Jai
It's a good question :-D
Jamil
😂😂😂
Jai
It should be blank, I guess!
Jamil
my instructor said this:
The difference between these tests is that the test_password_too_short requires creating a user by making a POST to the API.
The other tests all use the create_user() helper function to create the user, which bypasses the serializer validation.
Does this make sense?
Cheers,
Mark
Jamil
so hence, validation is bypassed, and we do not have to enter the name field
Jamil
but is it possible for it to be blank field in the dbase table
Jamil
Jai
Jamil
basically serializer validation is bypassed
Jai
Jai
Jamil
It is
oh ok, thats fine then i guess
Jamil
but why isnt it giving me an error
Jai
;)
Anas
Jamil
my instructor said basically its not giving an error because it doesnt save through the serializer which requires validation to be done, we are saving it directly Jai , so maybe that is why?
Anonymous
Any android django compiler is there ??
Anonymous
Jai
Rohan
Can we access id field of a table just like other fields of a table?
Jamil
yeah
Jamil
ofcourse
Jamil
its the pk
Jamil
primary key
Jamil
refer to it as pk in the code
Jamil
i believe
Rohan
Model - Post
x = Post.objects.all()
print(x.id)
Print(x pk)
Rohan
Error : Post model has no attribute as id or pk
Rohan
Model - Post
x = Post.objects.all()
print(x.id)
Print(x.pk)
Error : Post model has no attribute as id or pk
Jamil
bro
Jamil
just stack overflow it, there it should come up on how to do it
Jamil
also
Jamil
post.objects.all()
Jamil
refers to several objects
Jamil
not just one object
Jai
Jamil
so there are several primary keys
Jamil
yeah
Jamil
exactly
Jai
Jamil
there are many in there
Jamil
not just one man
Jamil
each one has a pk, not the whole thing bro
Jai
For i in x:
print(x.id)
Jamil
yeah
Jai
Rohan
Sure i will
Anonymous
Hey
Anonymous
I am beginner and facing in a project can ny one help me out
Jai
Anonymous
In the project I am trying to add image
Anonymous
In the blog project
Anonymous
But here is the error of expect endblock error
Anonymous
Can you help me out
Jai
Send your code
Jai
Actually
Jai
{%endblock%}
Anonymous
I have used this also
Anonymous
At the end of the program
Jai
Anonymous
Then also error is their
Anonymous
I can't able to send pic can I send to pm
Anonymous
You all can get the books on the drive
Anonymous
I have added two scopes Django book as well and a few other books for API integration with Django and other front-end framework libraries
Rohan
Can u share the link plz