arneb / django-messages

A Django application handling private messages between users.
BSD 3-Clause "New" or "Revised" License
552 stars 246 forks source link

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

Open FabriceSalvaire opened 8 years ago

FabriceSalvaire commented 8 years ago

file concerned management.py

Need to run:

 manage.py makemigrations django_messages

to create tables.

tobiasgoecke commented 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

tobiasgoecke commented 8 years ago

django.db.models.get_model is deprecated

See here for sample fix: https://github.com/wq/django-swappable-models/issues/6