haha sorry for got to post,
windows 7 running on activepython 2.7.2.5
(path is under python27)
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\James>python
ActivePython 2.7.2.5 (ActiveState Software Inc.) based on
Python 2.7.2 (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit (Intel)]
on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> C:\Users\James\Desktop\test.py runserver
File "<stdin>", line 1
C:\Users\James\Desktop\test.py runserver
^
SyntaxError: invalid syntax
>>> C:\Users\James\Desktop\test.py
File "<stdin>", line 1
C:\Users\James\Desktop\test.py
^
SyntaxError: invalid syntax
>>>
but the test.py file or any other py file is there and the path is correct
but python fails to recognise it as valid
cheers
On Friday, March 22, 2013 2:32:52 PM UTC+13, James wrote:
>
> Hey there,
>
> Did first Django app and everything worked find, however my computer
> crashed and after restoring it each time I try to execute any .py file in
> command prompt it says syntax error or that the module doesnt exist...
>
> Would you know any reasons for this? Python is still installed and
> everything that was there before the crash is still there.
>
> Thanks!
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.