Varud

Socially Proximate Predictions

Flower

Install Eclipse Galileo for Django and Pinax – Part 2

Now, onto getting Pinax installed for development purposes:

I really don’t like how things have gone with Pinax installation in the past few months. I’m going to give my own take on things. Pinax has moved to GitHub and so should you.

First, create an account at GitHub. Then, fork Pinax so you have your own copy to work with. For me, I have my development version here. If you want this repository to be private, you can pay GitHub $7/month – well worth it if this is a corporate gig.

Now you can follow the Pinax directions from your own fork.

$ curl -O http://github.com/AdamN/pinax/raw/master/scripts/pinax-boot.py
$ python pinax-boot.py --development ../Documents/workspace/WhateverYouNamedProject/src/pinax
$ source ../Documents/workspace/WhateverYouNamedProject/src/pinax/bin/activate
(pinax)$ cd ../Documents/workspace/WhateverYouNamedProject/src/pinax
(pinax)$ pip install --requirement src/pinax/requirements/external_apps.txt

At this point, if you have an existing installation of Pinax on your machine, you may get an error about django-wikiapp being the wrong version. In a new command line tab, run:

pip install django-wikiapp==0.1.2

If it says it’s already installed, you may need to delete the existing django-wikiapp in the directory shown by the error in the pip install command above. Now it’s time to start a project:

(pinax)$ pinax-admin clone_project basic_project myproject

You now have a Pinax site in myproject/ directory

(pinax)$ cd myproject
(pinax)$ ./manage.py syncdb
(pinax)$ ./manage.py runserver

Now, go to your browser and navigate to http://127.0.0.1:8000

Hopefully, you now see a Pinax website in all its glory.

Tags: , ,

  • gl33mer
    Thanks for the quick reply.

    Yeah it doesn't use eclipse. But does seem to have some other nice IDE's that work well, or at least seemed to.

    I was thinking of the development server for starts, as long as it can do what it takes.

    But I've got a learning curve ahead of me. Thanks again.
  • Adam N
    I have no experience with PortablePython but from what I see, it should be totally doable independently of Eclipse. Pinax already uses VirtualEnv so everything is in one spot as far as the system is concerned.

    The only issue would be the server itself. The development server might be sufficient (just ./manage.py runserver) but more likely, you'd want a more robust server. That server should probably be pure Python since you're looking for portability (over performance presumably). Maybe bundle it with one of these:

    http://docs.python.org/library/basehttpserver.h...
    http://twistedmatrix.com/trac/wiki/Documentation
  • Name
    I was wondering how difficult it would be to set Pinax up as part of PortablePython,

    :)
blog comments powered by Disqus