[ome-users] Cannot Initialize the Django settings database (fwd)
Mathieu Marchand
mmarchand at rockefeller.edu
Thu May 28 17:04:08 BST 2009
Hi Bernie
sudo -u apache PYTHONPATH=/home/omero/omero_dist/lib/python/ python
manage.py syncdb
worked for me to sync the omero.web database on a vanilla centos 5
install and omero 4.0.2
you need to run the command as the apache user (on centos it will be
"apache") as it will be the user that will later be accessing the
database through apache and mod_python (if i am right)
I also had to deactivate SELINUX and reboot Centos because it was
messing around with mod_python and omero.web. Maybe you will need to
do that too.
Mat
On Thu, May 28, 2009 at 11:43 AM, Bernie Broughton
<b.broughton at sussex.ac.uk> wrote:
> Hi Paulo,
>
> --On 28 May 2009 15:37 +0100 Paulo Almeida <palmeida at igc.gulbenkian.pt>
> wrote:
>
>> There is probably something wrong with the PYTHONPATH , because python is
>> not finding the django modules. If you do:
>>
>> ls /home/omero/omero_dist/lib/python/
>>
>> do you see anything? Did you really install it under omero_dist or is
>> there a version name there?
>
> The python directory is there with a load of other stuff including a django
> directory:
> drwxr-xr-x 7 omero omero 36864 May 27 16:20 python
>
> and in django:
> drwxr-xr-x 17 omero omero 4096 May 8 12:33 django
>
> This is when I'm logged on as root or omero.
>
> Followed Chris's recent instructions on how to do a Vanilla Centos 5.3
> installation.
>
> Bernie
>
> Bernie Broughton
> IT Manager
> Genome Damage and Stability Centre
> University of Sussex
> http://www.sussex.ac.uk/USIS/phone/details.php?id=19643
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>
--
Mathieu Marchand
--
Bio-Imaging Resource Center, The Rockefeller University
1230 York Avenue, box 209, New York, NY 10021
http://www.rockefeller.edu/bioimaging .
+1-212-327-7487 (7489 for fax)
+1-646-457-0430 (cell)
pgp public key:
http://mmarchand.googlepages.com/pgp.txt
More information about the ome-users
mailing list