Home > other >  Python SyntaxError: invalid syntax (vscode)
Python SyntaxError: invalid syntax (vscode)

Time:09-23

#! The/usr/bin/env python
"" "Django 's command - line utility for administrative tasks. "" "
The import OS
The import sys


Def the main () :
OS. Environ. Setdefault (' DJANGO_SETTINGS_MODULE ', 'DataAnlyzeProject. Settings')
Try:
The from the django. Core. Management import execute_from_command_line
Except ImportError as exc:
Raise ImportError (
"Couldn 't import Django. Are you sure it' s installed" and "
"The available on your PYTHONPATH environment variable? Did you
""Forget the to activate a virtual environment?"
) the from exc
Execute_from_command_line (sys. Argv)

If __name__=="__main__ ':
The main ()

CodePudding user response:

https://blog.csdn.net/qq_29757283/article/details/100149228

Estimation is the beginning of a line and line 15 of 16 inconsistent end-of-line Spaces or something
  • Related