python - module not found error in migration files after renaming model files in django -
i renamed model files users.py
users.py
. makemigrations , migration worked fine when tried run command manage.py runserver
, throwing error.
no module named 'accounts.models.users'
in migration file.
# -*- coding: utf-8 -*- # generated django 1.9.7 on 2016-09-12 16:37 __future__ import unicode_literals import accounts.models.users django.db import migrations class migration(migrations.migration): dependencies = [ ('accounts', '0004_usermodel_is_active'), ] operations = [ migrations.altermodelmanagers( name='usermodel', managers=[ ('objects', accounts.models.users.myusermanager()), ], ), ]
how resolve error? should not change model file names?
Comments
Post a Comment