Here is the error:

>>> python manage.py runserver
  File "<stdin>", line 1
    python manage.py runserver
                ^
SyntaxError: invalid syntax
>>> 


You've left out the most important bit - the actual traceback error. What 
is it?

If it can't find something, then it could be a PYTHONPATH issue.
Google tells me PT4VS may not support the usual way modules are
discovered (http://pytools.codeplex.com/discussions/254602), although
that should affect IronPython only, and not CPython (possibly
intellisense as well).

Inside PT4VS, in the interactive window, type in the following and
paste the result -

import sys
print sys.path



I'm not too familiar with these things yet. Are you saying CPython might be 
better if I want to work in Visual Studio with the setup I am trying?



Here is the response to


import sys
print sys.path 

it is:

>>> import sys
... 
>>> print sys.path
['c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE', 
'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg', 
'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg', 
'C:\\Python27\\lib\\site-packages\\django-1.3.1-py2.7.egg', 
'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 
'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 
'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 
'C:\\Python27\\lib\\site-packages', 'c:\\Program Files (x86)\\Microsoft 
Visual Studio 10.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for 
Visual Studio\\1.1', 
'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg\\IPython\\extensions']


This smells like a hack. Your default working directory should already
be the directory your app is in. If it isn't, you need to check your
project settings (you are using a Python VS project right?). 


Well I have no idea how I am hacking here...
But I didin't start a new project just through visual studio. I had already 
within the cmd prompt run the "startproject" command naming "mysite" to be 
"newartists." That was done at an earlier time so I just wanted to move to 
that directory within the python interpreter....

Well I didn't use a Python VS project because the files were already 
created but if I start a new Python file I'll most likely just pick my 
options within Visual Studio. That would make the most sense.

Thanks,

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/94xoFRPnfRAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to