Home > other >  Jumpserver8. It generates the database table structure and initialization data bash make_migrations.
Jumpserver8. It generates the database table structure and initialization data bash make_migrations.

Time:10-04


(py3) [root @ localhost utils] # bash make_migrations. Sh
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 14, the in & lt; module>
The from the django. Core. Management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 20, in & lt; module>
The import django
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 23, in & lt; module>
"Couldn 't import Django. Are you sure it' s installed" and "
ImportError: Couldn 't import Django. Are you sure it' s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 14, the in & lt; module>
The from the django. Core. Management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 20, in & lt; module>
The import django
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 23, in & lt; module>
"Couldn 't import Django. Are you sure it' s installed" and "
ImportError: Couldn 't import Django. Are you sure it' s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 14, the in & lt; module>
The from the django. Core. Management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 20, in & lt; module>
The import django
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "../apps/manage. Py ", line 23, in & lt; module>
"Couldn 't import Django. Are you sure it' s installed" and "
ImportError: Couldn 't import Django. Are you sure it' s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

CodePudding user response:

I also encountered this error cannot solve the great god grant instruction

CodePudding user response:

https://blog.csdn.net/milkign/article/details/80054430 there is the answer
  • Related