I'm new to Django. I got through the beginner tutorial without much
trouble and I just finished the introductory chapters of The
Definitive Guide, so I decided to start work on a real project. I've
quickly run into a bizarre stumbling block however when I try to start
my new project.
I run cmd.exe to open the windows command prompt, then I navigate to
my django projects folder, then type 'django-admin.py startproject
newsite' and then I get this error in the command prompt:
'The system cannot find the file idle.pyw'.
I also get an error dialog in windows titled 'idle.pyw' that says
'Windows cannot find 'idle.pyw'. Make sure you typed the name
correctly, and then try again. To search for a file, click the Start
button, and then click Search.'
I get the same error if I simply type 'django-admin.py' into the
prompt as well.
I really have no clue what's going on here. What does idle.pyw have to
do with anything? Google has been no help. I did this exact same thing
when going through the tutorial with no problems whatsoever, and made
no changes to any of my PATH variables or anything of that kind.
Any ideas? I'm really eager to get going with Django but feeling quite
frustrated! Thanks for help.
-Dane
If that doesn't work, try replacing 'python' there with the full path to your Python executable in Windows. I've never heard of this problem, but it sounds like it could be something odd in the environment.
Shawn
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
On Dec 18, 11:59 am, OkaMthembo <zebr...@gmail.com> wrote:
> Hi Dane,
>
> Yes, when you have to specify an absolute path to get it working, it
> definitely sounds like a PATH environ config. problem. When you check your
> PATH variables, do you see the folder to django-admin.py listed?
>
> Regards,
> Lloyd
>
>
>
> On Fri, Dec 18, 2009 at 7:27 PM, Dane <dane.schnei...@gmail.com> wrote:
> > It worked with 'python c:\python26\scripts\django-admin.py
> > startproject newsite'. Does that mean the PATH got messed up somehow?
>
> > On Dec 18, 7:52 am, Shawn Milochik <sh...@milochik.com> wrote:
> > > What happens when you type 'python django-admin.py'?
>
> > > If that doesn't work, try replacing 'python' there with the full path to
> > your Python executable in Windows. I've never heard of this problem, but it
> > sounds like it could be something odd in the environment.
>
> > > Shawn
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users...@googlegroups.com<django-users%2Bunsu...@googlegroups.com>
If idle.pyw has taken over .py associations, how would I check/change
that?
On Dec 18, 12:59 pm, OkaMthembo <zebr...@gmail.com> wrote:
> Hi Dane,
>
> Yes, when you have to specify an absolute path to get it working, it
> definitely sounds like a PATH environ config. problem. When you check your
> PATH variables, do you see the folder to django-admin.py listed?
>
> Regards,
> Lloyd
>
>
>
> On Fri, Dec 18, 2009 at 7:27 PM, Dane <dane.schnei...@gmail.com> wrote:
> > It worked with 'python c:\python26\scripts\django-admin.py
> > startproject newsite'. Does that mean the PATH got messed up somehow?
>
> > On Dec 18, 7:52 am, Shawn Milochik <sh...@milochik.com> wrote:
> > > What happens when you type 'python django-admin.py'?
>
> > > If that doesn't work, try replacing 'python' there with the full path to
> > your Python executable in Windows. I've never heard of this problem, but it
> > sounds like it could be something odd in the environment.
>
> > > Shawn
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users...@googlegroups.com<django-users%2Bunsu...@googlegroups.com>
Idle had taken over .py files. It was as simple as going to My
Computer, Tools, Folder Options, File Types, scrolling down to .py,
and clicking Restore Default (which is python).
Thanks for the help all!