Migrate doen't recognize my apps to migrate

74 views
Skip to first unread message

Fellipe Henrique

unread,
Dec 29, 2017, 11:22:14 AM12/29/17
to Django Users
Hi all,

I have these apps, on my django site:

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

# erp apps:
'erp.apps.base',
'erp.apps.login',
'erp.apps.cadastro',
'erp.apps.vendas',
'erp.apps.compras',
'erp.apps.fiscal',
'erp.apps.financeiro',
'erp.apps.estoque',
]

I try to run: $ python manage.py migrate  and get these:

Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
  No migrations to apply.


I have several migration files on each app, but migrate doesn't recognize them...

I`m using Django 1.10.1

How can I fix that?

regards


T.·.F.·.A.·.     S+F
Fellipe Henrique P. Soares

e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Twitter: @fh_bash

Jason

unread,
Dec 29, 2017, 11:52:19 AM12/29/17
to Django users
If you haven't made the migrations, then you don't have any to actually apply.

You can use https://docs.djangoproject.com/en/2.0/ref/django-admin/#django-admin-showmigrations to show the migrations that have been created and those that have been applied

higs

unread,
Dec 31, 2017, 1:32:28 AM12/31/17
to Django users
- Are your migrations in folders named "migrations" inside each app?
- If so, does each of those folders have an "__init__.py" file?
- Did you create your migrations with `python manage.py makemigrations` ?
Reply all
Reply to author
Forward
0 new messages