Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.9 : django.db.models.signals.post_syncdb remplaced by post_migrate #68

Open
FabriceSalvaire opened this issue Jan 14, 2016 · 2 comments

Comments

@FabriceSalvaire
Copy link

file concerned management.py

Need to run:

 manage.py makemigrations django_messages

to create tables.

@tobiasgoecke
Copy link

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

@tobiasgoecke
Copy link

django.db.models.get_model is deprecated

See here for sample fix:
openwisp/django-swappable-models#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants