Answer the question
In order to leave comments, you need to log in
What is the models file in a django project?
Do I understand correctly that the models.py file is the file where we create the database for our project?
If so, is it possible to create a model in SQLite studio and then use it in a project?
Then the code in this file should be generated from the generated file from SQLite studio?
Answer the question
In order to leave comments, you need to log in
Do I understand correctly that the models.py file is the file where we create the database for our project?
Do I understand correctly that the models.py file is the file where we create the database for our project?No. _
If so, is it possible to create a model in SQLite studio and then use it in a project?There you can create tables , but not models .
This is a file where we describe \ design a model for our ORM, the file can contain a bunch of model classes that in the future = table in the database, Attributes in the model = table attributes in the future.
Ultimately the structure is flooded by the ORM with django commands makemigrations [app]\migrate [app]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question