makemigrations is not creating migrations

hello pals,
i run makemigrations then migrate with commands below

python3 manage.py makemigrations
python3 manage.py migrate

as i understand it suppose to migrate each app i inserted in settings.py below INSTALLED_APPS
i have home app and after run migrations, it doesn’t appear in the migrations command in terminal and doesn’t even get migrations directory.
is there any clue i follow why this app doesn’t get migrations like each other app,

Do you have a migrations directory in your new app? (See makemigrations)

No i don’t have migrations directory,
does it supposed to be created by makemigrations command??

You need a migrations directory.
Django won’t create it for you.

Actually, it can. Read the docs for the makemigrations command as referenced above.

Hi,
I created a new application, and the first time I ran makemigrations I did not use any option ( like --dry-run or --empty), however :

  • no directory migration created ;
  • the method app.models is not available.
  • when I ran “migrate” then django creatred properly its table into the data base.

Cannot understand where what could be wrong.
I have tried the --check option (django 4.0 ) , but it rplñies that there are no changes in app. Sure, it is right, but doesn’t help.

An idea of what to do ?

May be there is a link : I use postgresql, and I defined 2 dictionaries :

DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.postgresql_psycopg2’,
‘NAME’: ‘fermel’,
‘OPTIONS’: {
‘options’: ‘-c search_path=commun,public’,
},
‘USER’: ‘me’,
‘PASSWORD’: ‘pass’,
‘HOST’: ‘vps’,
‘PORT’: ‘5434’,
},
‘fermel’: {
‘NAME’: ‘fermel’,
‘ENGINE’: ‘django.db.backends.postgresql’,
‘OPTIONS’: {
‘options’: ‘-c search_path=ferme’,
},
‘USER’: ‘me’,
‘PASSWORD’: 'pass,
‘HOST’: ‘vps’,
‘PORT’: ‘5434’,
}
}

I might suggest you open up a new topic for this discussion. When you do, include the complete error messages you are receiving.