Re: Image and thumbnal solution

2010-08-12 Thread Aljoša Mohorović
On Wed, Aug 11, 2010 at 9:40 PM, Franklin Einspruch wrote: > I still don't get this. Are you supposed to do something like... > > image = models.ImageField() > image.height_field = 'height' > image.width_field = 'width' > > And make 'height' and 'width' columns in the table? I really wish the > do

Re: Image and thumbnal solution

2010-08-11 Thread Franklin Einspruch
I still don't get this. Are you supposed to do something like... image = models.ImageField() image.height_field = 'height' image.width_field = 'width' And make 'height' and 'width' columns in the table? I really wish the docs had some sample code here... - Franklin On Wed, Aug 11, 2010 at 8:

Re: Image and thumbnal solution

2010-08-11 Thread Aljoša Mohorović
On Wed, Aug 11, 2010 at 2:26 PM, zero00 wrote: > I get it now thanks no problem, glad i could help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this gr

Re: Image and thumbnal solution

2010-08-11 Thread zero00
I get it now thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, v

Re: Image and thumbnal solution

2010-08-11 Thread Aljoša Mohorović
On Wed, Aug 11, 2010 at 2:02 PM, zero00 wrote: > Im testing various things right now and i narrow the problem to this: > >  height_field=150, width_field=150 > > thumb = models.ImageField(upload_to="images/services/thumbs", > height_field=150, width_field=150) > > those parameters are the thing th

Re: Image and thumbnal solution

2010-08-11 Thread zero00
Im testing various things right now and i narrow the problem to this: height_field=150, width_field=150 thumb = models.ImageField(upload_to="images/services/thumbs", height_field=150, width_field=150) those parameters are the thing thats breaking up the code -- You received this message becau

Re: Image and thumbnal solution

2010-08-11 Thread zero00
that just a typo in the post. the code is fine. i also know the plugins you said but i want to learn how to build my own solution. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.co

Re: Image and thumbnal solution

2010-08-11 Thread Aljoša Mohorović
> image = models.ImageModel(upload_to"image_path") is this copy/paste error or did you forget "=" for upload_to? Aljosa Mohorovic -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.co

Re: Image and thumbnal solution

2010-08-11 Thread zero00
Im getting this error: TypeError at /admin/services/service/add/ getattr(): attribute name must be string Request Method: POST Request URL:http://localhost:8000/admin/services/service/add/ Django Version: 1.2.1 Exception Type: TypeError Exception Value: getattr(): at

Re: Image and thumbnal solution

2010-08-11 Thread Aljoša Mohorović
On Wed, Aug 11, 2010 at 1:00 PM, zero00 wrote: > I tried the most simple way: > > class Model(models.Model): >   thumbnail = models.ImageModel(upload_to="thumb_path" height=100, > width=100) >   image = models.ImageModel(upload_to"image_path") > > but apparently the default save function is not eq

Image and thumbnal solution

2010-08-11 Thread zero00
I been trying to do a very simple image/thumbnail solution but I seem to fail at every try. I tried the most simple way: class Model(models.Model): thumbnail = models.ImageModel(upload_to="thumb_path" height=100, width=100) image = models.ImageModel(upload_to"image_path") but apparently th