Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 29 2015 12:00
    mafrosis commented #26
  • Dec 29 2015 10:45
    relekang closed #25
  • Dec 29 2015 10:33
    relekang commented #26
  • Dec 29 2015 10:29
    relekang closed #27
  • Dec 29 2015 10:29
    relekang commented #27
  • Dec 29 2015 06:53
    jayprakashstar opened #27
  • Dec 15 2015 18:19
    mafrosis commented #26
  • Dec 15 2015 18:18
    mafrosis opened #26
  • Aug 02 2015 18:51
    relekang synchronize #25
  • Aug 02 2015 18:51
    relekang synchronize #25
  • Jul 01 2015 19:51
    relekang opened #25
  • Jun 19 2015 07:07
    relekang commented #24
  • Jun 19 2015 04:08
    nordbit commented #2
  • Jun 19 2015 01:31
    ricardodani opened #24
  • Jun 18 2015 00:03
    ricardodani commented on ee52b65
  • Jun 08 2015 08:24
    relekang closed #23
  • Jun 08 2015 08:00
    relekang opened #23
  • May 09 2015 13:11
    relekang commented #2
  • May 09 2015 11:36
    nordbit commented #2
  • May 04 2015 10:20
    relekang closed #22
Raja Simon
@rajasimon
Hi. I still can't able to figure out this..
Rolf Erik Lekang
@relekang
Hi :)
To use it with django, just import get_thumbnails and use the function :)
Raja Simon
@rajasimon
Oh... OK but i want to use that in template
Rolf Erik Lekang
@relekang
Then you will have to wait a couple of days for the next release
Raja Simon
@rajasimon
Oh. Ok
Rolf Erik Lekang
@relekang
but I may be able to today or tomorrow, see #6
I can let you know when it is done if you want?
Raja Simon
@rajasimon
Ya, It's cool .. that's why i want python-thumbnail
sure... My branch still wait for that feature...
Rolf Erik Lekang
@relekang
I see, I let you know
Rolf Erik Lekang
@relekang
@rajasimon relekang/python-thumbnails@af3c0c8 Adds the templatetag, I will make a release later tonight
Raja Simon
@rajasimon
Hi
Ya.. It's working.. Thanks for that
And have one doubt...
It's my latest project when i do ..like
{% get_thumbnail "data.member_image.url" "400x400" crop="center" as thumbnail %}
    <img src="{{ thumbnail.url }}" alt="The thumbnail" style="width: {{ thumbnail.width }}" />
so .. the error now is
Errno 2] No such file or directory: u'/Users/simon/Nightybuild/devfamily/media/thumbnails-cache/data.member_image.url
Now you understand what's the error .. right ?
but when i print {{ data.member_image.url }} .. it's printing the image url ..
Rolf Erik Lekang
@relekang
You should not put data.member_image.url inside "", as it looks like a variable?
Raja Simon
@rajasimon
oh sry ..
Cool.. My bad.. I wrongly understand.. Ok .. thanks ...
Rolf Erik Lekang
@relekang
Np :)
Rolf Erik Lekang
@relekang
@rajasimon there is a release out now
Raja Simon
@rajasimon
ya.. i updated to the latest..
And I pushed my branch to heroku.. Now working fine..
And i really want to integrate default image for my userbase...
I was thinking like adding default imagefield in django database
but
that will create lot of noise right ?
better solution ?
Rolf Erik Lekang
@relekang
Wouldn't this solve it?
{% if data.member_image %}
  {% get_thumbnail data.member_image.url "400x400" crop="center" as thumbnail %}
  <img src="{{ thumbnail.url }}" alt="The thumbnail" style="width: {{ thumbnail.width }}" />
{% else %}
    <img src="/static/default-member.jpg" alt="The thumbnail" style="width: {{ thumbnail.width }}" />
{% endif %}
Raja Simon
@rajasimon
Ok i will try that later..
and now in my heroku app throwing cannot write mode P as JPEG
Rolf Erik Lekang
@relekang
I'll fix that
Raja Simon
@rajasimon
ok waiting
i uploaded first two images and that was working .. then third image cause this issue..
Rolf Erik Lekang
@relekang
@rajasimon I uploaded a new release now
Raja Simon
@rajasimon
ok.. I will try that ..
Rolf Erik Lekang
@relekang
@rajasimon Slow morning so I forgot something, sorry. I'll upload a new one in a few minutes that actually works
0.4.1 should be good, it is uploaded now
Noushin
@bnoushin7
Hi, I am having trouble making my application a flask one. I want to deploy it in heroku. Can anybody help me please?