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

python3 manage.py makemigrations 命令报错 #15

Open
llylhz opened this issue Apr 7, 2021 · 0 comments
Open

python3 manage.py makemigrations 命令报错 #15

llylhz opened this issue Apr 7, 2021 · 0 comments

Comments

@llylhz
Copy link

llylhz commented Apr 7, 2021

[root@bogon dbmon]# python3 manage.py makemigrations
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/django/apps/config.py", line 244, in create
app_module = import_module(app_name)
File "/usr/local/python3/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'blog_index'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/python3/lib/python3.6/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/python3/lib/python3.6/site-packages/django/core/management/init.py", line 395, in execute
django.setup()
File "/usr/local/python3/lib/python3.6/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/python3/lib/python3.6/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/local/python3/lib/python3.6/site-packages/django/apps/config.py", line 250, in create
app_config_class.qualname,
django.core.exceptions.ImproperlyConfigured: Cannot import 'blog_index'. Check that 'dba_blog.apps.DbaBlogConfig.name' is correct.

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

1 participant