Question

I'm trying to get south working in my Visual Studio environment but I can't seem any of the commands shown in the tutorial to work like manage.py schemamigration movies --initial that will just show the following error

  File "<stdin>", line 1
    manage.py schemamigration movies --initial
                            ^
SyntaxError: invalid syntax

I've tried using Django Shell, Validate Django App..., Django Sync DB... options from the project context menu to open the interpreter and Tools > Python Tools > Python 64-bit 2.7 Interactive but neither of those worked.

I'm using Visual Studio Ultimate 2013 Preview with Python Tools version 2.0.

Was it helpful?

Solution

This command is something that you should type in the Windows command prompt, not in a Python source file or Interactive window (aka REPL) - the latter are for Python code, which this isn't.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top