Django Windows Install Issues

86 views
Skip to first unread message

Joe Buty

unread,
Feb 25, 2014, 4:23:49 PM2/25/14
to django...@googlegroups.com
Hello, I am having trouble getting Django to work. I have installed python and downloaded and unzipped the .tar file for django. I am using windows 8 ugh and can not open the instal file. I read through the setup.py and I think I need help setting the correct path. Either moving the Django unzip folder or declare where it is. 

If any one can offer me advice or even just describe how they got Django to work, whether its on Win8 or something more useful.

Nick Santos

unread,
Feb 25, 2014, 4:40:42 PM2/25/14
to django...@googlegroups.com
Hi Joe,

You shouldn't need to set any paths to install Django. If you open a command prompt up and navigate to the folder (or hold down shift and right click in the folder and select "Open Command Window Here" then run the command "python setup.py install" it will install Django.

Also, I'd highly recommend you install a package manager like "pip", which will make future installs much easier.

-Nick


On Tue, Feb 25, 2014 at 1:23 PM, Joe Buty <joe...@gmail.com> wrote:
Hello, I am having trouble getting Django to work. I have installed python and downloaded and unzipped the .tar file for django. I am using windows 8 ugh and can not open the instal file. I read through the setup.py and I think I need help setting the correct path. Either moving the Django unzip folder or declare where it is. 

If any one can offer me advice or even just describe how they got Django to work, whether its on Win8 or something more useful.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54607b0b-7de9-4bc9-b6fd-8e404425f68b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Vernon D. Cole

unread,
Feb 26, 2014, 3:50:59 PM2/26/14
to django...@googlegroups.com


On Tuesday, February 25, 2014 2:23:49 PM UTC-7, Joe Buty wrote:
Hello, I am having trouble getting Django to work. I have installed python and downloaded and unzipped the .tar file for django. I am using windows 8 ugh and can not open the instal file. I read through the setup.py and I think I need help setting the correct path. Either moving the Django unzip folder or declare where it is. 

If any one can offer me advice or even just describe how they got Django to work, whether its on Win8 or something more useful.

Django will run on your machine -- it's a bit of a challenge.  I usually switch my dual-boot laptop on to Linux for serious django work, but have it set up so that I can maintain the same code on either platform.  Here's what you will need:

To get started:...
  You need a copy of a good, general purpose compression/decompression utility like 7-zip.  That will unpack your .tar and .gz files.

  A copy of Python.  I recommend installing Python 3.3 because the Python Launcher for Windows makes life on the command line so much easier -- and you will be spending a LOT of time running command line commands.  If you want to use Python 2.7, then install both.  The launcher will run Python 2 by default unless you tell it otherwise.  Try to write your programs in a Python 2.7 compatible dialect of Python 3, no matter which Python version you use.  Learn how to set environment variables, you will need them.

  Some kind of minimal Python IDE.  IDLE (that comes with Python) is not the best.  I like the one that comes with pywin32. If you are going to do anything serious on Windows, (os interface, SQL, native graphics ...) you need pywin32. Note: it works in 64 bit Windows, too, using the same name.

Then, as soon as you decide to start getting serious:...

  You need pip -- even though it is terrible to install on Windows.  See http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows

  A good Python IDE.  If you have already purchased Visual Studio, get Python tools for Visual Studio which works quite well with CPython. Otherwise, try the free version of PyCharm. I run it on both my Windows machine (free version) and Linux (the boss paid for the commercial license on that one.)

  A copy of git. It is my least favorite distributed source control system, but is the de-facto standard for django projects.
 
  virtual env wrapper for Windows to keep your different projects from stepping on each other.

 Happy downloading, and good luck in your efforts.
--
VC

Mike Dewhirst

unread,
Feb 26, 2014, 6:33:33 PM2/26/14
to django...@googlegroups.com
On 27/02/2014 7:50am, Vernon D. Cole wrote:
>
> You need pip

I agree

-- even though it is terrible to install on Windows.

I disagree

> See http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows

You have to wade through an awful lot of that page before you see the
2014 update ...

"To install or upgrade pip, securely download get-pip.py. [1]

Then run the following (which may require administrator access):

python get-pip.py"


[1] https://raw.github.com/pypa/pip/master/contrib/get-pip.py

That link brings up a page which is python code explained in the
docstring at the top. I just bought a Windows 8.1 laptop and used it to
install pip. I right-clicked and saved the page as get-pip.py

Then, I opened an administrator prompt and did ...

python get-pip.py

... and it just worked. A little unconventional but much easier than I
remember from earlier times.

Mike

Joe Buty

unread,
Feb 27, 2014, 4:33:31 PM2/27/14
to django...@googlegroups.com
Thanks I got django and pip installed. I also got the community version of pyCharm and its is awesome. Thanks for all of the relevant comments and suggestions.
Reply all
Reply to author
Forward
0 new messages