I try to django sync db inv visual studio 2015.
See screenshot:
but then I get this errors:
Python interactive window. Type $help for a list of commands.
Executing manage.py syncdb
Unknown command: 'syncdb'
Type 'manage.py help' for usage.
The Python REPL process has exited
>>> python manage.py migrate
Traceback (most recent call last):
File "D:Program Files (x86)Common7IDEExtensionsMicrosoftPython Tools for Visual Studio2.2visualstudio_py_repl.py", line 654, in run_one_command
self.execute_item()
File "D:Program Files (x86)Common7IDEExtensionsMicrosoftPython Tools for Visual Studio2.2visualstudio_py_repl.py", line 628, in execute_code_work_item
code = compile(self.current_code, '<stdin>', 'single', self.code_flags)
File "<stdin>", line 1
python manage.py migrate
^
SyntaxError: invalid syntax
>>> manage.py migrate
Traceback (most recent call last):
File "D:Program Files (x86)Common7IDEExtensionsMicrosoftPython Tools for Visual Studio2.2visualstudio_py_repl.py", line 654, in run_one_command
self.execute_item()
File "D:Program Files (x86)Common7IDEExtensionsMicrosoftPython Tools for Visual Studio2.2visualstudio_py_repl.py", line 628, in execute_code_work_item
code = compile(self.current_code, '<stdin>', 'single', self.code_flags)
File "<stdin>", line 1
manage.py migrate
^
SyntaxError: invalid syntax
So I already have read that you have to fill in:
python manage.py migrate
But that also doens' t work.
Thank you
Aucun commentaire:
Enregistrer un commentaire