The File "is the manage. Py", line 22, in & lt; module>
The main ()
The File "is the manage. Py", line 18, in the main
Execute_from_command_line (sys. Argv)
File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django/core/management/set py", line 401, in execute_from_command_line
The utility. The execute ()
File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django/core/management/set py", line 345, in the execute
Settings. The INSTALLED_APPS
The File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django \ conf \ set py", line 83, in __getattr__
Self. _setup (name)
The File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django \ conf \ set py", line 70, in _setup
Self. _wrapped=Settings (settings_module)
The File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django \ conf \ set py", line 177, in __init__
Mod=importlib. Import_module (self. SETTINGS_MODULE)
The File "D: \ ProgramData \ Anaconda3 \ lib \ importlib \ set py", line 127, in import_module
Return _bootstrap. _gcd_import (name [level:], package, level)
File "
'DIRS: [OS. Path. Join (BASE_DIR,' templates')]
NameError: name 'OS' is not defined
(venv) D: \ project \ PycharmProject \ mysite> Python manage. Py makemigrations
Traceback (the most recent call last) :
The File "is the manage. Py", line 22, in & lt; module>
The main ()
The File "is the manage. Py", line 18, in the main
Execute_from_command_line (sys. Argv)
File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django/core/management/set py", line 401, in execute_from_command_line
The utility. The execute ()
File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django/core/management/set py", line 345, in the execute
Settings. The INSTALLED_APPS
The File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django \ conf \ set py", line 83, in __getattr__
Self. _setup (name)
The File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django \ conf \ set py", line 70, in _setup
Self. _wrapped=Settings (settings_module)
The File "D: \ project \ PycharmProject \ mysite \ venv \ lib \ site - packages \ django \ conf \ set py", line 177, in __init__
Mod=importlib. Import_module (self. SETTINGS_MODULE)
The File "D: \ ProgramData \ Anaconda3 \ lib \ importlib \ set py", line 127, in import_module
Return _bootstrap. _gcd_import (name [level:], package, level)
File "
CodePudding user response:
Have import OSCodePudding user response:
Yes, is I can smoothly runserver then executes on the command line, create the project in pycharm runverser, there is no responseCodePudding user response:
Have to solve