Mirco
I want to register for student which has enrollment , course , subject 3 fields ...but I want to register this student in django auth users so how to do that
take one of the millions tutorials around the web that talks about registration and login and you will know how to do it easily
Mirco
I go through that but not knowing how to personalize
if you went through them you should know it otherwise you just need more time to study and understand
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
Doragonsureiyā
Please what are some websites where I can get Django tutorials which are beginner friendly.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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
Mirco
*how
do you know Telegram has edit message feature ? 😜
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
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
Put title=models.CharField(Null=True)
But I want it constraint to another table....
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?
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
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..
Vivek Khillar
Make view for the same page
No its not working i tried
Ghorz
i'm a student so i don't have really much time to learn js from starts..
Using js will make it easy to select relevant data from the page
Vivek Khillar
No its not working
Vivek Khillar
Please help me
Vivek Khillar
Can i do multiple models in a same view
Anonymous
No its not working i tried
When you Charfield must give how many character allow
Anonymous
Its 50
Can show your code
Anonymous
Take screenshots
Anonymous
Vivek Khillar
Not allowed for screnshots in the group
Doragonsureiyā
Not allowed for screnshots in the group
Read the rules before any activity: @PythonRules
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
Mirco
Please any body give ans. Of my que
Explain better your issue The answer is yes, how ? By getting instances from your models and use them into the view
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
I was saying about how to pass multiple models in a single view
explain better your goal we don't have too much info, I can tell you to use context but I don't know what's your goal
Mirco
Use function view
a CBV can be used but it depends on what he needs to do otherwise every suggestion is useless