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 webstack

pfexec 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 



        
    
Comments:

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 09, 2008 at 06:04 PM 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 07:33 AM PDT #

Thank you!

Posted by branesks on September 10, 2008 at 07:41 AM 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 04: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 08:40 AM 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 09:18 AM 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 09:23 AM 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 09:30 AM 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 09:43 AM 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 09:48 AM PDT #

I will work on getting psycopg2 added to the webstack repository.

Posted by Brian Overstreet on October 01, 2008 at 07:27 AM PDT #

Awesome! Thanks!

Posted by Miles on October 01, 2008 at 08:47 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Brian Overstreet

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today