Errors after django 1.7 migration and reset

一个人想着一个人 提交于 2019-12-02 10:16:17

问题


*This is my first time learning back-end development, so please bear with me.

I am working on an app named "Taskmanger" with Django 1.7. After performing inital migration with following commands.

python manage.py makemigrations Taskmanager
python manage.py migrate

I got the following error when I tried to run runserver command.

   File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
    ImportError: No module named adminTaskmanager

and deleting migration files

Then, I deleted the migration folder and files inside the app folder, and now I am getting duplicate error:

django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: admin

Could anyone tell me how I can go back to the time point before I ran migrate commands? (I am not looking for answers on how to override the duplicate error.)

来源:https://stackoverflow.com/questions/27186667/errors-after-django-1-7-migration-and-reset

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!