Really weird - Admin not working with Apache/modpython

2006-08-03 Thread Hale

Hey all,

I've got version 0.95 installed and it all works fine from the built in
webserver on my FC5 machine.  Works awesome.  But when I move to
running it behind modpython on Fedora5's apache, the admin stops
working - more accurately I get a blank screen.  Nothing.  Not an error
from the browser or from modpython.  If I view the source of the doc
there is nothing there.  That means it is getting the Http header,
right?   It's really weird.  The only other app in the project with
only 1 view works fine in this setup.  It's is pretty simple right now
with a simple HttpResponse.

My httpd.conf (really in my python.conf but I can't see how that'll
matter)


SetHandler mod_python
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE ae.settings
#This is the project - it is in my site-packages
PythonDebug On
#PythonAutoReload On


I've copied the media folder to my www root for apache to find.  This
is a really simple application with a urls.py:

(r'^gear/$', 'ae.gear.views.index'), <- This works fine
(r'^admin/', include('django.contrib.admin.urls')),

I'm using sqlite3 for a db.  Do you think its a media thing?  Any help
would really be appreciated; I'm certainly at a loss.  Thanks in
advance.

-mhale


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Really weird - Admin not working with Apache/modpython

2006-08-04 Thread Hale

>From what you said about sqlite3 not working - I took the plunge into
PostgreSQL.  And it is working now.  No media.  But, I'll figure that
out.  Thanks for the tips on curl and sqlite3.

-mhale


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



migrating from winxp to linux problems

2006-01-10 Thread Hale

Hey all,

My first post and I wish it was something positive (and maybe a little
shorter).  I'm migrating from winXP to linux(Fedora4) and I'm at a
loss.  First off everything works perfectly from the dev server -
'dango-admin.py runserver'.

I see my app(really just the tutorial 'polls' at this point - for
testing purposes and as a refresher for all the basics) and the admin
interface.  But when I go through mod_python I get wacky errors (posted
at http://www.onylybigkids.com/django/ae.htm &
http://www.onlybigkids.com/django/ae2.htm).  What  is really weird is
the first time I request a page I get the first error then if I do a
reload I get the second.  Mod_python works fine doing the hello world.
My django app is in my /usr/lib/python2.4/site-packages/ directory.
I'm using sqlite3 as my database backend.

>From the errors you'd think I was spelling something wrong in my
settings.py - but it wouldn't work from the dev server would it?  I was
thinking permissions -  so I chmod/chgrp/chown'd so much I don't even
remember what it was before :-) I started mucking around.  I've been
doing everything as root which I would think is the thing to do.  But I
now have read/write permissions on all my project set for anyone.  I
even added my /var/www/html dir to my python path and moved the project
over there and chown it to apache.  It has always worked from the
dev-server but never apache2/mod_python3.  It this possibly a version
thing?

This was so easy on winxp, and I'm not the linux expert I'd like to be.
 I'll post anything people want to see (httpd.conf, python.conf,
settings.py - even the sqlite3 db).  Thanks in advance.

-mhale



Re: migrating from winxp to linux problems

2006-01-10 Thread Hale

Adrian,

Thanks and  I got it.  Just to document for people who come after me -
I did all these tests from within mod_python as well as outside it.

First off python version - from within mod_python and I looked all over
I can't find any other versions "2.4.1 (#1, May 16 2005, 15:19:29) [GCC
4.0.0 20050512 (Red Hat 4.0.0-5)]"

If within a python shell I do a from pysqlite2 import dbapi2 it's all
good.  dbapi2.version reponds 2.06.  But I checked it with mod_python
and I get the error that ends in the " permission denied
'./python-eggs' ".  This all exposes more lack of knowledge, but I'm
cool with that.  Pysqlite2 is in an egg in the site-packages.  This is
the important part - mod_python doesn't like zipped eggs.  Unzip it,
did some cleanup of the easy_install.pth, restart apache, and it's all
good.  Thanks again.

-mhale