I just looked it over and it seems as though this is all I need to do:

===========================================================
class PhotoDocumentation(models.Model):
        image = models.ImageField(upload_to='/media/images')
        caption = models.CharField(max_length=100)

        def __unicode__(self):
                return self.name

        class Admin:
                pass
===========================================================

I have installed the Photo Imaging Library, and when I sync my db this
is the error I get:

===========================================================
C:\dev\incidents>C:\Python25\python C:\dev\incidents\manage.py syncdb
Error: One or more models did not validate:
base.photodocumentation: "image": To use ImageFields, you need to
install the Py
thon Imaging Library. Get it at http://www.pythonware.com/products/pil/
.
===========================================================

Maybe my Python Imaging Library is in the wrong location??

Thanks :)
Molly
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to