views:

660

answers:

3

Can I install Pinax on Windows Environment? Is there a easy way? Which environment do you recommend?

A: 

Provided you have Python and Django installed, Pinax should install fine. According to the documentation there is one step that you have to do specifically on Windows however (Under the "Note To Windows Users" heading):

http://pinaxproject.com/docs/0.5.1/install.html

kfordham281
0.5.1 didn't work for me in Windows.
Wahnfrieden
Actually Pinax document is not very clear about installing on Windows.
Firstthumb
That's because it wasn't possible a few months ago. I made a lengthy attempt, and had to patch several files (including pip's source!) but still failed in the end.
Wahnfrieden
A: 

I spent a while trying to get the .7 beta working in Windows and ran into a lot of trouble. However, it looks like the 3rd beta release of .7 (the latest beta release) focuses on Windows support. So try that, instead of the 'stable' version - it's close to being released as stable anyway, and is recommended now for use.

In the end though, I switched to Ubuntu and haven't been happier. Python development is much nicer in Linux. It's easier to install many Python packages, I run into fewer configuration issues, and there's better support and documentation available.

Wahnfrieden
You are right. python development is really much easier and nicer in Linux. But I have to use windows environment for development.
Firstthumb
Ah, I misunderstood what you meant by recommending a better platform then. Is running Linux in a VM out of the question?
Wahnfrieden
Yes, One solution is to install linux in VM. Anyway Wahnfrieden, You say that it is not possible to install Pinax (last version) on Windows, that's true?I don't get the difference between Pinax and Django! Django works on Windows with no problem but Pinax which combines some django modules into one framework doesn't work on Windows. It sounds like we are missing something.
Firstthumb
No, I said that the latest release of Pinax (.7 beta 3) claims to have focused on Windows support, so that version should work for you - though I haven't tried it myself. Pinax has many external dependencies . It's a huge project (you pick and choose what parts you want). A few of the dependencies have trouble installing on Windows, but I think they've worked it out now. "Django modules" can include Python libraries written in C for example, so it's trickier than you'd think.
Wahnfrieden
Thank you Wahnfrieden.
Firstthumb
Enjoy, Pinax is a great platform. Take a look at social_project, but start out with basic_project and add the things you need, since it's easier to add than to take away. Use social_project as a guide.
Wahnfrieden
The answer is Yes - you can install and run pinax on windows. I have had zero issues with 0.7rc1.
Ryan Montgomery
+4  A: 

I have pinax 0.7rc1 installed and working on windows 7, with no problems.

Check out this video for a great example on how to do this. He uses pinax 0.7beta3 on windows XP.

http://www.vimeo.com/6098872

Here are the steps I followed.

  1. download and install python
  2. download and install python image library
  3. download pinax at http://pinaxproject.com
  4. extract the download to some working directory <pinax-directory> (maybe c:\pinax ?)
  5. make sure you have python in your path (c:\pythonXX)
  6. make sure you have the python scripts folder in your path (c:\pythonXX\scripts)
  7. open a command prompt
  8. cd to <pinax-directory>\scripts folder
  9. run python pinax-boot.py <pinax-env> (I used "../pinax-env")
  10. wait for pinax-boot process to finish

-- technically pinax is installed and ready to use, but the next steps will get you up and running with pinax social app (any other app will also work fine)

  1. cd to your <pinax-env>\scripts directory
  2. execute the activate.bat script
  3. execute python clone_project social <pinax-env>\social
  4. cd to <pinax-env>\social
  5. execute python manage.py syncdb
  6. execute python manage.py runserver

  7. open your browser to the server and you should see your new pinax site

Voila!! Pinax on Windows.

Ryan Montgomery