Answer the question
In order to leave comments, you need to log in
What is model.Models in Python/Django?
Good afternoon. I recently started learning Python and Django along the way.
Why is model.Models in brackets where the inherited class should be?
This point confuses me. What does she mean?
I did not find any information on this subject in the textbooks.
Answer the question
In order to leave comments, you need to log in
if we do this
from django.db.model import Model
then we write
class MyModel(Model):
....
if
from django.db import model
then
class MyModel(model.Model):
....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question