Open FabriceSalvaire opened 8 years ago
Hi @FabriceSalvaire, the command
manage.py makemigrations django_messages
works without any errors. But this command didn't create the tables. Did you have any workaround? (Django Version: 1.9.1)
I tried the command "manage.py migrate django_messages" and got the following error:
site-packages/django_messages/management.py", line 1, in <module>
from django.db.models import get_models, signals
ImportError: cannot import name get_models
Thank you for your help.
Tobias
django.db.models.get_model is deprecated
See here for sample fix: https://github.com/wq/django-swappable-models/issues/6
file concerned management.py
https://docs.djangoproject.com/en/1.9/releases/1.7/#deprecated-features-1-7
A new makemigrations command provides an easy way to autodetect changes to your models and make migrations for them.
django.db.models.signals.pre_syncdb and django.db.models.signals.post_syncdb have been deprecated, to be replaced by pre_migrate and post_migrate respectively. These new signals have slightly different arguments. Check the documentation for details.
Need to run:
to create tables.