where is place of models.model class in django.db folder | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

where is place of models.model class in django.db folder

Model class in python

5th Nov 2020, 4:19 PM
mohsen
4 Answers
+ 7
I am used to laravel, i know a little about django, but django models are placed inside apps -> models . py 'by default
5th Nov 2020, 5:17 PM
Ona Nixon 🇹🇿 👑
Ona Nixon  🇹🇿  👑 - avatar
+ 1
Hello again I found response of my question, it's here (if i in mistake please say me): The Model class is in this path: Your directory of project\Virtual environment\django\db\models\... And ... means that: Beyond absolute import in python in __init__.py in models folder above it import base.py and in base.py is Model class Congratulation ....😃😄
7th Nov 2020, 9:16 PM
mohsen
0
I hope that response help anyone that is like to learning everything deep like me .
7th Nov 2020, 9:19 PM
mohsen