Quick and dirty solution:
python django-admin.py startproject mysite

or

Add C:\PathToYourDjangoInstall\Scripts\ to your PATH environment variable.
This can be done in one of two ways.

#1 (EASIER)
Open 'System Properties' (hit WindowsKey + PauseBreak, or right-click on My
Computer and select 'Properties').
Switch to the 'Advanced' tab, click on 'Environment Variables' on the bottom
of the dialog.
Find PATH on the 'System Variables' list, double-click.
append C:\PathToYourDjangoInstall\Scripts\ to the 'Variable Value'. Don't
forget to add a semi-colon.


#2 (BETTER)
Download and install virtualenv (http://pypi.python.org/pypi/virtualenv)
Follow instructions to create a virtual environment in, say,
C:\django\virtual\
Create a 'mydjango.bat' batch file anywhere in your computer that sets the
PATH for you according to that virtual environment.
Create a shortcut pointing to: %windir%\system32\CMD.EXE /K
"C:\SomePath\mydjango.bat"
Run it whenever you want to work within that environment.


I personally use a variation of #2.

Sincerely,
André Terra


On Sat, Jan 29, 2011 at 16:44, 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<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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.

Reply via email to