What I recommend is that you install pip and virtualenv, create a folder
(say, C:\virtual\) where you will place different python "environments" per
virtualenv, then create a folder (say, C:\projects) where you will create
different django projects.

This way you can always use virtualenv to "activate" different environments
and not need to install libraries system-wide.


Basically (blue commands are to be typed in the command prompt):
01. Go to http://pypi.python.org/pypi/pip#downloads
02. Download the archive, extract the contents to a given folder (you might
need 7-zip[1]).
03. Open the command prompt (Winkey+R, type in "cmd" with no quotes)
04. cd into the folder created by the extracted archive in step 02
05. python setup.py install
06. Make sure you have C:\Python27\Scripts in your PATH.
06.1. Do this by typing set PATH=C:\Python27\Scripts;%PATH% in the command
prompt
07. pip install virtualenv
08. mkdir c:\virtual && mkdir c:\projects
09. cd c:\virtual
10. virtualenv --no-site-packages myfirstenvironment (you can name this
after your project if you want to)
11. cd myfirstenvironment

*12. Activate your environment:
C:\virtual\myfirstenvironment\Scripts\activate.bat*

If you want the development version of Django:
13.A. pip install git+https://github.com/django/django.git#egg=django

If you want a stable release:
13.B. pip install django

14. Whenever you need to install a package, just do the same as in step #12
but type the package name instead of django. Don't forget to activate your
environment whenever you open a command prompt window and BEFORE you start
working on your project!


I think that about sums it up. Using this on linux is of course easier. I
hope I didn't miss any steps, but I'm sure others will correct me if I
forgot anything.


Cheers,
AT


[1] http://www.7-zip.org/download.html


On Wed, Mar 21, 2012 at 3:48 AM, Jani Tiainen <rede...@gmail.com> wrote:

> 21.3.2012 7:50, Samuel Muiruri kirjoitti:
>
>  I can't get the first part to work
>>
>>
> I assume that you have python installed to c:\python27\
>
> You need to add c:\python27\scripts to your path.
>
> Or alternatively:
>
> c:\python27\scripts\django-**admin.py startproject mysite
>
> --
>
> Jani Tiainen
>
>
> --
> 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+unsubscribe@**
> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<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