I attempted this with a png and was greeted with a success... but then
python/server denying access to the directory due to "suspicious
operation"... so i've got two things to fix... I suppose i need to set
up some kind of write access to the server?

On Dec 10, 3:20 pm, garagefan <[EMAIL PROTECTED]> wrote:
> getting this error:
>
> "Upload a valid image. The file you uploaded was either not an image
> or a corrupted image."
>
> tried with a gif and with a jpg. I've got PIL installed...
>
> it probably has to do with my models.vi.
>
> from django.db import models
> from django.core.files.storage import FileSystemStorage
>
> from tagging.fields import TagField
> from tagging.models import Tag
>
> class Portfolio(models.Model):
>     sitename = models.CharField(max_length=200)
>     url = models.CharField(max_length=200)
>     thumb = models.ImageField(upload_to='/images/portfolio')
>     description = models.TextField()
>     tags = TagField()
>
>     def __unicode__(self):
>         return u'%s' %(self.sitename)
>
> do i need to do anything with the Storage API to get this to work? Or
> is there a certain item i need to place in "INSTALLED_APPS"?
--~--~---------~--~----~------------~-------~--~----~
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