When I installed my web at webfaction I did this to see which module python
use,
at settings.py
import os
import django, PIL
logfile = open('path.log', 'w')
django_path = django.__file__
pil_path = PIL.__file__
logfile.write('django - %\n pil - %s\n' % (django_path, pil_path))
logfile.close()
...
With this code, you can see which module you are using.
I can successfully install my web with this trip.
Regards
2008/5/5 TP <[EMAIL PROTECTED]>:
>
> Could you have different PYTHONPATH settings for mod_python vs command
> line where you're running the admin server? Different versions of PIL
> or something between those two versions? libjpeg and friends installed
> in non-standard locations where they're found by the command line
> python but not the python being loaded by mod_python?
>
> On May 2, 5:02 pm, mw <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I've emailed the mailing list in the past because of problems with PIL
> > and and image field upload in the admin interface. The problem, just
> > got weirder.
> >
> > I noticed that images were never validating as actual images and were
> > constantly being rejected. Out of a hunch, I fired up the django
> > built-in server and tried the same page with the same image. This
> > time, the image validated and it was correctly uploaded.
> >
> > Does anyone happen to know what would then be stopping the code from
> > validating the image upload when run through apache instead of the
> > django development server?
> >
> > I'm using the SVN of django on OS X.
> >
> > Thanks in advance,
> > mw
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---