Oh Axel, sorry about that ^_^; The tutorial said I should cd to the directory I want to start my project. So no I wasn't in C:\Python27\Scripts when I typed the command
On Jan 30, 2:05 am, Axel Bock <mr.axel.b...@gmail.com> wrote: > you should not. are you IN c:\...\scripts when you type in > "django-admin.py"? AFAIK windows adds the current directory always to the > path. > > and it's AXEL ;) > > 2011/1/29 Panupat <panup...@gmail.com> > > > Hi Alex. Thank you for you suggestion. > > > It seems I can get the script to run if I type out the full path. > > > C:\Python27\Scripts\django-admin.py startprofect mysite > > > C:\Python27 is already added to my windows' PATH. Proably will need to > > add C:\Python27\Scripts to it too. > > > On Jan 30, 1:44 am, Axel Bock <mr.axel.b...@gmail.com> wrote: > > > hm ... my windows times are over quite a while, BUT ... > > > > 1) try associating the .py extension with the python commandline > > > interpreter. > > > 2) syntax error? send a screendump maybe, or your exact command line ... > > it > > > _should_ work without problems. > > > > can you execute other simple python scripts? > > > > cheers, > > > axel. > > > > 2011/1/29 Panupat <panup...@gmail.com> > > > > > I'm kinda stuck and would greatly appreciate any help. > > > > > I followed these turorials and got Django to install. Was able to > > > > import Django and print out the version correctly. I'm running > > > > Apache2.2 on windows 7 with mod_wsgi > > > > >http://docs.djangoproject.com/en/1.2/intro/install/ > > > > > But moving forward to part 1, It says, cd to the directory and run the > > > > command > > > > django-admin.py startproject mysite > > > > > This is where I don't understand. > > > > - running the command from cmd, it says django-admin.py is not > > > > recognized as command. > > > > - if I run python first, it says syntax error. > > > > > Am I missing something from the tutorial? Does the project need to be > > > > in a particular folder in order for the .py file to be executable? Is > > > > there anything else I need to add to windows other than adding C: > > > > \Python27 to PATH? > -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.