About Thumbnails
Hello everyone. Firstly sorry for my English. I am newbie in django. I have learned some things with this group, i have some problems and i hope we will find some solutions together. The subject is about thumbnails. I have searched google and google users topic, i tried what they said, i used sorl thumbnails etc..., but i could not get any result. - I was using wordpress and there, there was a thumbnail addon. With this addon or extension, you can upload any file from your computer and also from any image url. This takes the image, and saves the original file to somewhere, for example: into the 'originals' folder. - Into the 'thumbnails' folder, the addon is creating a thumbnail in sizes which you have specified the sizes before. - And when you want to change the sizes of the thumbnails, you enter the new sizes, addon automatically resize or regenerate the files from the originals folder to the thumbnails folder. I am using thumbnails everywhere, so if we solve this, this will be very good for me and the other people who has this same problem. Sorry if there is somewhere on the web, i could not find any solution. Thank you for you help. Regards. -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
I'll have a look at it. But it is better to solve this within the models.py (ImageField)). then the application. So we can use this thumbnail function or file with every project easily. Thank you for your answer. Any other suggestions? On Mon, Oct 18, 2010 at 4:56 PM, Venkatraman S wrote: > Look into django-photologue. It has some thumbnail generation functions, i > guess. > > -V- > http://twitter.com/venkasub > > -- > 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, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Replacing Text in Textarea
Hello. With TinyMce or in a textarea; when we write [vimeo ], how does it replace with below code? http://player.vimeo.com/video/"; width="400" height="225" frameborder="0"> This can be improve with youtube or etc... Thank you for your interests. -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
It is a good extension, but in template page, {% load thumbnail %} ... ... this combination is not working for me. What should i do you think? On Tue, Oct 19, 2010 at 8:02 AM, Kenneth Gonsalves wrote: > On Mon, 2010-10-18 at 19:26 +0530, Venkatraman S wrote: >> Look into django-photologue. It has some thumbnail generation >> functions, i >> guess. > > this is the best: > > http://github.com/SmileyChris/easy-thumbnails > -- > regards > Kenneth Gonsalves > > -- > 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, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Ekin Yalgın 0544 877 90 25 www.ekinyalgin.com -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
I assumed that iimage filed is named thumb. Must it be 'photo' certainly? On Thu, Oct 21, 2010 at 2:01 PM, Kenneth Gonsalves wrote: > On Thu, 2010-10-21 at 13:53 +0300, Ekin Yalgın wrote: >> It is a good extension, but in template page, >> >> >> {% load thumbnail %} >> ... >> > > assume that the image field is named photo: > > > > will work (note it is not object.photo.url) > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > -- > 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, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
It is something like this class Project(models.Model): avatar = ImageField(upload_to='images') On Thu, Oct 21, 2010 at 2:16 PM, Kenneth Gonsalves wrote: > On Thu, 2010-10-21 at 14:11 +0300, Ekin Yalgın wrote: >> I assumed that iimage filed is named thumb. Must it be 'photo' >> certainly? > > you can name it anything you want - what is the name you have given it > in the model? > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > -- > 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, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Ekin Yalgın www.ekinyalgin.com -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
Sorry it is thumb = ImageField ... On Thu, Oct 21, 2010 at 2:21 PM, Ekin Yalgın wrote: > It is something like this > > class Project(models.Model): > avatar = ImageField(upload_to='images') > > On Thu, Oct 21, 2010 at 2:16 PM, Kenneth Gonsalves wrote: >> On Thu, 2010-10-21 at 14:11 +0300, Ekin Yalgın wrote: >>> I assumed that iimage filed is named thumb. Must it be 'photo' >>> certainly? >> >> you can name it anything you want - what is the name you have given it >> in the model? >> -- >> regards >> Kenneth Gonsalves >> Senior Associate >> NRC-FOSS at AU-KBC >> >> -- >> 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, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > > -- > Ekin Yalgın > www.ekinyalgin.com > -- Ekin Yalgın www.ekinyalgin.com -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
Thank you but it didn't work Do we need add something to templatetags folder? I am saying this, because with django-thumbnail extension, http://bitbucket.org/winsmith/django-thumbnail/wiki/Home when i add thumb.py to templatetags folder it is working with it is working. It is creating a new file with imagename_320_240 (something like this) .jpg file. On Thu, Oct 21, 2010 at 2:24 PM, Ekin Yalgın wrote: > Sorry it is thumb = ImageField ... > > On Thu, Oct 21, 2010 at 2:21 PM, Ekin Yalgın wrote: >> It is something like this >> >> class Project(models.Model): >> avatar = ImageField(upload_to='images') >> >> On Thu, Oct 21, 2010 at 2:16 PM, Kenneth Gonsalves wrote: >>> On Thu, 2010-10-21 at 14:11 +0300, Ekin Yalgın wrote: >>>> I assumed that iimage filed is named thumb. Must it be 'photo' >>>> certainly? >>> >>> you can name it anything you want - what is the name you have given it >>> in the model? >>> -- >>> regards >>> Kenneth Gonsalves >>> Senior Associate >>> NRC-FOSS at AU-KBC >>> >>> -- >>> 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, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >>> >> >> >> >> -- >> Ekin Yalgın >> www.ekinyalgin.com >> > > > > -- > Ekin Yalgın > www.ekinyalgin.com > -- Ekin Yalgın www.ekinyalgin.com -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
The path is correct, because python gives no error and creates the tables about the easy_thumbnails. Model adds the image to the its directory. There is no problem, if you ask this, else i didn't understand what you meant. Thanks again. On Thu, Oct 21, 2010 at 2:39 PM, Kenneth Gonsalves wrote: > On Thu, 2010-10-21 at 14:34 +0300, Ekin Yalgın wrote: >> Thank you but it didn't work Do we need add something to templatetags >> folder? I am saying this, because with django-thumbnail extension, >> http://bitbucket.org/winsmith/django-thumbnail/wiki/Home >> when i add thumb.py to templatetags folder it is working with >> >> it is working. It is creating a new file with imagename_320_240 >> (something like this) .jpg file. > > you just need to put it in installed_apps - and the rest will work. What > do you mean by 'does not work', I think you may be having path problems. > Does the image appear when try to display it without thumbnails? > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > -- > 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, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Ekin Yalgın www.ekinyalgin.com -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: About Thumbnails
Thumbnail si not working. On Thu, Oct 21, 2010 at 2:48 PM, Kenneth Gonsalves wrote: > On Thu, 2010-10-21 at 14:44 +0300, Ekin Yalgın wrote: >> The path is correct, because python gives no error and creates the >> tables about the easy_thumbnails. Model adds the image to the its >> directory. There is no problem, if you ask this, else i didn't >> understand what you meant. Thanks again. > > is the thumbnail working? or not? > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > -- > 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, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Ekin Yalgın www.ekinyalgin.com -- 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, visit this group at http://groups.google.com/group/django-users?hl=en.