après la creation d'une application toto de zero et creation de l'application 'core' que j'ai ajouté au settings.py
je tape :
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ ./manage.py migrate
Operations to perform:
Apply all migrations: contenttypes, admin, auth, sessions
Running migrations:
Rendering model states... DONE
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying sessions.0001_initial... OK
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ vim toto/settings.py
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ ls
core db.sqlite3 manage.py toto
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ django-admin startapp coreze
et on ne voit rien concernant l'appli "core", donc ajout de coreze à INSTALLED_APPS
copie d'un modele bidon
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ cp core/models.py coreze/
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ !./
./manage.py migrate
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ ./manage.py makemigrations
Migrations for 'coreze':
0001_initial.py:
- Create model ServicesActivated
(foobar) foxmask@localhost:~/DjangoVirtualEnv/foobar/toto $ ./manage.py migrate
Operations to perform:
Apply all migrations: contenttypes, auth, coreze, admin, sessions
Running migrations:
Rendering model states... DONE
Applying coreze.0001_initial... OK
Donc il semblerait que "core" soit pas adéquate comme nom d'appli