python - Django runserver ImportError -
i'm running django 1.9 on python 3.4 in virtualenv. has been working, today, it's not.
when run ./manage.py runserver, following error:
(django1)dan@danvb:~/share/django1/suorganizer$ ./manage.py runserver performing system checks... system check identified no issues (0 silenced). unhandled exception in thread started <function check_errors.<locals>.wrapper @ 0x7f48a01d2c80> traceback (most recent call last): file "/home/dan/share/django1/lib/python3.4/site-packages/django/utils/autoreload.py", line 226, in wrapper fn(*args, **kwargs) file "/home/dan/share/django1/lib/python3.4/site-packages/django/core/management/commands/runserver.py", line 117, in inner_run self.check_migrations() file "/home/dan/share/django1/lib/python3.4/site-packages/django/core/management/commands/runserver.py", line 163, in check_migrations executor = migrationexecutor(connections[default_db_alias]) file "/home/dan/share/django1/lib/python3.4/site-packages/django/db/migrations/executor.py", line 20, in __init__ self.loader = migrationloader(self.connection) file "/home/dan/share/django1/lib/python3.4/site-packages/django/db/migrations/loader.py", line 49, in __init__ self.build_graph() file "/home/dan/share/django1/lib/python3.4/site-packages/django/db/migrations/loader.py", line 170, in build_graph self.load_disk() file "/home/dan/share/django1/lib/python3.4/site-packages/django/db/migrations/loader.py", line 105, in load_disk migration_module = import_module("%s.%s" % (module_name, migration_name)) file "/home/dan/share/django1/lib/python3.4/importlib/__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) file "<frozen importlib._bootstrap>", line 2254, in _gcd_import file "<frozen importlib._bootstrap>", line 2237, in _find_and_load file "<frozen importlib._bootstrap>", line 2212, in _find_and_load_unlocked file "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed file "<frozen importlib._bootstrap>", line 2254, in _gcd_import file "<frozen importlib._bootstrap>", line 2237, in _find_and_load file "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked importerror: no module named 'core.migrations.delete'
i uninstalled , reinstalled django==1.9, , same error. in lib/python3.4/site-packages/django/core/, don't have migrations directory. i'm not sure for. command ./manage.py runserver worked me on project not long ago.
thank you.
solved.
in have django migrations folder, core/migrations/ in instead of deleting migration module, renamed xxx.delete thinking might want revert it. upon deleting module, importerror resolved.
Comments
Post a Comment