Django on OpenSolaris
The Django IPS package for OpenSolaris has been made available for testing and feedback.
Installation
Make sure the Web Stack IPS repository is an authority:
pfexec pkg set-authority -O http://pkg.opensolaris.org/webstack webstackpfexec pkg refresh
Then install the package:
pfexec pkg install Django
Documentation
The man page has information on what was installed and where.
man django
Getting Started with a Site
The Django documentation is a great reference for getting started with Django. To start with a default site called mysite, type
django-admin.py startproject mysite
I followed your instructions explicitly and I keep getting this error message: "pkg: unknown subcommand 'add'".
I tried to use pfexec pkg install Django, when I do that I get this error message: "pkg: no package matching 'Django' could be found in current catalog
suggest relaxing pattern, refreshing and/or examining catalogs
pkg: install failed: Unable to assemble image plan".
What am I doing wrong?
Posted by branesks on September 10, 2008 at 01:04 AM PDT #
It looks like the http://pkg.opensolaris.org/webstack/ package repository is down. I'll post here when it is back up.
Posted by Brian Overstreet on September 10, 2008 at 02:33 PM PDT #
Thank you!
Posted by branesks on September 10, 2008 at 02:41 PM PDT #
The package server appears to be back online. Let me know if you have issues now.
Posted by Brian Overstreet on September 11, 2008 at 11:32 AM PDT #
Brian - Outside of the "pkg add" bit, your instructions worked as advertised - great stuff. This heightens my interest in OpenSolaris immensely. Now only if emacs22 was available in the repositories :-).
Question - what deployment options (mod_python/mod_wsgi) will be supported? Both would be great of course, but I'd strongly suggest getting mod_wsgi support in for 2008.11.
Thanks again!
Posted by Miles on September 29, 2008 at 03:40 PM PDT #
What error did you get when you did the 'pfexec pkg add Django' command?
mod_python ran out of time to be included in 2008.11 and mod_wsgi is also not included, but there is useful information for mod_wsgi at the site, http://code.google.com/p/modwsgi/wiki/InstallationOnSolaris
Posted by Brian Overstreet on September 29, 2008 at 04:18 PM PDT #
The same problem as your first commenter: "pkg: unknown subcommand 'add'". The "pfexec pkg install Django" command works fine.
Too bad regarding mod_python & mod_wsgi. Hopefully for the next release. I'll check out the solaris installation docs.
Thanks for the response.
Posted by Miles on September 29, 2008 at 04:23 PM PDT #
That was typo in the instructions. Thanks for pointing that out again. It should be 'pfexec pkg install Django'.
Posted by Brian Overstreet on September 29, 2008 at 04:30 PM PDT #
As far as emacs22, I have just been building it from source.
pfexec pkg install SUNWxorg-headers
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs co emacs
cd emacs
./configure --with-gif=no
make
pfexec make install
Posted by Brian Overstreet on September 29, 2008 at 04:43 PM PDT #
Thanks - that's what I ended up doing as well, though I went with a gtk build. I was just surprised not to find it in the repositories given its common use. Another question - is psycopg2 slated for inclusion at some point? I normally used postgresql with django, and that's the preferred db driver.
Posted by Miles on September 29, 2008 at 04:48 PM PDT #
I will work on getting psycopg2 added to the webstack repository.
Posted by Brian Overstreet on October 01, 2008 at 02:27 PM PDT #
Awesome! Thanks!
Posted by Miles on October 01, 2008 at 03:47 PM PDT #