Saturday, December 30, 2017

Re: Migrate doen't recognize my apps to migrate

- 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` ?

On Friday, December 29, 2017 at 11:22:14 AM UTC-5, Fellipe Henrique wrote:
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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/59dd17ac-6a3b-44ae-9df2-40332d692d94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment