Thursday, June 19, 2014

Getting Django setup on Windows

A friend asked me how to setup an Django enviroment on Windows without the Cygwin fuzz. Here is the shortest steps I can think of:

1. Install Python3.4 as default path. (It should be "C:\Python34").
2. Open cmd.exe program on Windows and run the following commands:

    set PATH=%PATH%;C:\Python34;C:\Python34\Scripts
    pip install django
    python C:\Python34\Lib\site-packages\django\bin\ startproject mysite
    cd mysite
    python syncdb

    (Follow prompts to setup an initial db. remember the user you used here.)

    python runserver

3. You are ready to django! Open your browser to verify.
    Or login into with the user you setup above.
What's next?
    Explore django with a guided tutorial here:

No comments:

Post a Comment