I am developing a django app in virtual environment. Django version 1.9.7.
I splitted the models.py
into multiple files and kept them in a folder with __init__.py
file.
|-- Models
| |-- __init__.py
| |-- PersonModel.py
| `-- VehicleModel.py
Content of init.py file is -
from .VehicleModel import *
from .PersonModel import *
Inside VehicleModel.py file, I created a model.
from django.db import models
class Vehicle(models.Model):
regNo = models.charField(max_length=16, null = False, blank = False, primary_key = True )
chassisNo = models.charField(max_length=64)
engineNo = models.charField(max_length=64)
manufacturer = models.charField(max_length=128)
product = models.charField(max_length=128)
Now when I am running python manage.py makemigrations MyAppName
it says No changes detected in app 'MyAppName'
I did initial migrations and default tables are created in DB.
Also I don't have anything in migrations folder except init file.