Mirco
R.U.S.H.A.B.H
R.U.S.H.A.B.H
R.U.S.H.A.B.H
Yes I'll study
Mirco
Can you share specific one?
https://learndjango.com/tutorials/django-custom-user-model
first you need to know how to make a custom user to enrich it with your specific fields
Mirco
and also https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Anonymous
Please what are some websites where I can get Django tutorials which are beginner friendly.
Jaime
You have some of them pinned
Anonymous
Mirco
Tzipi
Hi, in Sql lite in Django , how to save an obj with foreign key to another table (Not null constraint):
1. def class A(models.Model):
user= models. Fk(User,
on_del=model. CASCADE)
title = models.CharField
2. create method:
@classmethod
def create(cls,user id , title):
A=cls(user id , title)
The instance A created.
3. I do A.save().
4. Receive Not null constraint failed.
* user_id exist in the constraint table.
* i do not think it’s a permission issue.
Vitaliy
Well, which fields do you fill when create your instance? The constructor of model gets kwargs.
Tzipi
I create a new instance
The mint of Linux **
Hey...hot to submit a xml sitemap on Django website
The mint of Linux **
Mirco
*how
do you know Telegram has edit message feature ? 😜
Jimmies San
Mirco
Jimmies San
😂😂😂😂😂
Vivek Khillar
Can we use multiple models for showing product in one page ?
Anonymous
In my project database error bro
Anonymous
Python with django
Anonymous
Is any one solve it?
Vivek Khillar
Yes
Vivek Khillar
Tell me
Himalaya
Vivek Khillar
Vivek Khillar
Its urjent
Himalaya
Yes
Himalaya
We can
Vivek Khillar
How
Vivek Khillar
??
Himalaya
Make view for the same page
Himalaya
Or with same address
Tzipi
So null is not an option
Tzipi
That’s the idea of FK...
Anonymous
Unable to open database file
Anonymous
Thats the erro
Anonymous
Guys I'm trying to filter my model's posts to appear in the template I did as follows in my view :.
model = Post.objects.filter (status = "done")
only q is giving this error ->
Queryset object has no attribut __default_manager
What can it be?
Shyamkumar
Zion
hey i’m trying to get products from certain category and past through to show certain items on categories block
Zion
this is my product model
Zion
ok this is now giving me an option to send the whole code
John
share your code
https://stackoverflow.com/questions/64008694/multi-nested-with-django-restframework-and-mongodb Can you help me
Zion
category = models.ForeignKey(Category, blank=True, null=True, on_delete=models.CASCADE)
Zion
and in catgeory model i have only name = models.CharField
Zion
but how can i extend only the products from the certain categroy? i can make all of them with, Product.objects.all()
Ghorz
Ghorz
And some api will do
Zion
tnx, but what should i focus on?
Zion
this is an ecommerce site
Zion
i'm a student so i don't have really much time to learn js from starts..
Ghorz
Vivek Khillar
No its not working
Vivek Khillar
Please help me
Vivek Khillar
Can i do multiple models in a same view
Vivek Khillar
Zion
Anonymous
Its 50
Can show your code
Anonymous
Take screenshots
Anonymous
Vivek Khillar
Not allowed for screnshots in the group
Ghorz
Anonymous
Mirco
Vivek Khillar
Please any body give ans. Of my que
John
Please amyone give some idea..
John
https://stackoverflow.com/questions/64008694/multi-nested-with-django-restframework-and-mongodb
Vivek Khillar
I was saying about how to pass multiple models in a single view
Vitaliy
What are you trying to do?
Anonymous
Use function view
Mirco
Use function view
a CBV can be used
but it depends on what he needs to do otherwise every suggestion is useless