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
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:
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
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
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
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
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
> 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
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
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
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
11 matches
Mail list logo