Which one of Django app is better for image resizing (easy-thumbnails or django-imagekit)? [closed] - django

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I installed django-imagekit, which works well for me, but would like to implement user custom image-cropping (https://github.com/jonasundderwolf/django-image-cropping) which has integration with easy_thumbnails.
Which one is better to use for Django project to show images in different sizes? What are benefits and disadvantages of each?

All of these apps serve (slightly) different purposes so you can't really compare them. And if one is better than the other depends on your use case and is quite subjective which is not a good fit for SO.
easy_thumbnails helps you to quickly generate thumbnails. And of course you can specify the dimensions, scale images and even use PIL to do all kinds of processing (via Processors). If you "only" need thumbnails i'd say this is the way to go.
django-image-cropping lets you select a part of your image (crop) in the admin and helps you to display the cropped selection (using an easy_thumbnail thumbnail processor) across your page.
I haven't use ImageKit but it is advertised as follows:
ImageKit is a Django app that helps you to add variations of uploaded
images to your models. These variations are called “specs” and can
include things like different sizes.
So it seems to be similiar to easy_thumbnails as it also comes with Processors and the ability for thumbnail generation.
To me ImageKit seems to be the more powerful option if you need lots of image processing in the backend while the focus of easy_thumbnails seems to be quick generation of thumbnails.

Related

Suggestions for a "shopping cart" application with a twist? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
My company wants users to be able to gather different documents from our website (for instance, manuals, installation instructions, etc) and put them all in one place (kind of like a shopping cart) to then print out all at once when their visit is over. Are there any applications that I can leverage to do this? We want something that's fairly plug-and-play because this is a late-stage requirement. I feel like I've come across something like this before but can't remember where.
Any suggestions would be greatly appreciated! Thanks!
There should be scripts where it bunches all of the selected documents into a zipfile for you. I've seen it on Joomla sites where you select different modules you want to download and it puts it into one package. Sorry I can't help with actual code.
You say "shopping cart" but are users paying for these documents?
If so, you can outsource the downloads to a third party like PayPal to handle the digital downloads. PayPal API will let you handle a shopping cart.
If not, why not just have a link to a PDF on the document's description page? Then they can save, print, whatever. (My two cents, of course, but I don't see the big advantage to bundling a bunch of documents just to unbundle them on the other end.)

Good open source django project for learning [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can anyone suggest a good open source django project to learn django development.
A great resource is www.djangopackages.com, which lists a lot of the notable Django apps out there, including links to their respective repos, popularity ratings, etc..
Another way to find popular projects is directly on GitHub: https://github.com/search?q=django
Finally:
Awesome Django # https://github.com/wsvincent/awesome-django
Awesome Python # https://github.com/vinta/awesome-python
django-basic-apps is also a very good start to learn django and reusable apps. These apps are simple enough and code is well written.
If you're looking to learn the popular reusable app feature of Django I would suggest Pinax, and you also may want to look at Django-Mingus. I'm the author behind Mingus and I recently posted a list of the apps included in Mingus along with a description of how and why they are used. It maybe helpful in finding some projects you may want to use yourself. Here's a link: "The apps that power Django-Mingus"
There's also a ton of Django projects on Google Code, GitHub, and BitBucket. Just search for "django".
Django-CMS, mentioned above, and Fein-CMS are both good CMS projects to dive into, and the screencasts by Eric are terrific - I absolutely suggest any noob to Django watch all 13 of those screencasts.
I asked Malcolm Tredinnick a few weeks ago if there was a project he admired and he suggested Django Packages. They keep their source on Github .
I wouldn't say that it should be used as a Django tutorial but they have an admirable style of programming and I have picked up more than a few tips and tricks by reading their source. It is definitely a good example to learn from.
One of the best for newbie: 13 screencasts "Django From the Ground Up" at This Week In Django#
edit:
#the website is closed. view archived page.
I recommend Waka Waka. Its a very well written wiki, that should give you a good idea of how to develop in django. It is an application used by Pinax, which by itself should be huge, to learn.
You can also of course go through some of ubernostrum's code like Registration, profiles and Contact Form, which are a standard in the django world. But as some of them involve dynamic forms, it may be best to get to it, after a little actual coding.
If you're interested in running Django in App Engine, checkout out this project. Here's a demo.

Am I reinventing the wheel on this idea? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Ok here it goes, hope this is an original idea. Scenario is this. I have hosted a personal website, which contains a wordpress blog as well. I have a windows mobile connected to internet via GPRS.
I want to write an application for my windows mobile, which would track my current GPS coordinates (I don't have GPS but have figured out a way to find out the coordinates), and upload them to my site, where I'd provide a web service which can get or set GPS coordinates. Then I want to display my current location in my blog (as a wordpress plugin) or in another page, where it talks with my web service again to obtain my latest GPS coordinates.
So am I reinventing the wheel or there's a complete solution available for me to achieve such a thing?
Any pointers please. It's not directly programming related, but it sure involves programming!!!
Sounds like Google Latitude.
There are quite few of these types of applications/systems.
I myself have written a similar system to try to recover my phone if it gets stolen.
On codeplex you can find This (not mine).

What powers Google Charts? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Does any body know what powers Google Charts? I have been using it for a while but not sure what Google used to build it.
They bought the Gapminder library for doing charts. It's a Java library as far as I know, but they don't seem very anxious to release the code as open-source.
Everything at google is done in C++, Java, or Python. I'm guessing the internals is probably done in one of the latter two.
Mathplotlib was my guess too - ( thanks "davidg" ).
SVG - got my own doubts because you don't have to go the length of server side SVG just to produce a static image. No panning or scaling required so not sure if they used SVG
I feel the touch of SVG there..
Maybe Internal engine to generate and work with SVG and export images as PNG images.
Any other thoughts?
Just guessing here: they must be using Python with some charting library and then returning the produced files. There are a few tools to do charts in Python. Matplotlib and ReportLab come to mind.
What is sure is that you can do it with a Java servlet.
Eastwood is an open source implementation of the Google Chart API.
(powered by JFreeChart)
Probably just libraries they have written themselves, it's pretty easy to throw together a chart drawing library, but hard to do it right. So someone hacked together a custom java/C++/python library using already available stuff to be able to update the graphics of his charts easily, and then it extended.
That's the great thing about it, that you can make your own version without much effort, just change the URL and design your own flash animation of the chart. And that the data available in the graphs is easily webscraped..
Just theory, but something like this is perfect small project to do in 20% of your time.

Django Calendar Widget? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Does anyone know of any existing packages or libraries that can be used to build a calendar in a django app?
A quick google search reveals django-gencal, which looks like exactly what you need. It would also be worth looking at the snippets under the calendar tag on Django Snippets at http://www.djangosnippets.org/tags/calendar/.
It seems that django-calendar has become django-agenda: http://github.com/dokterbob/django-agenda
Great Tipps
django-swingtime lives on
http://github.com/dakrauth/django-swingtime
The django-schedule code originally from thauber (thauber/django-schedule) has been forked and worked into the glamkit/glamkit-eventtools code for Galleries, Libraries, Museums and Archives. It has also been forked and updated by a variety of other folks, e.g. boskee/django-schedule, and my guess is that that might have fewer dependencies and be easier to integrate into another project. It says:
Django-schedule: A calendaring/scheduling application, featuring:
one-time and recurring events
calendar exceptions (occurrences changed or cancelled)
occurrences accessible through Event API and Period API
relations of events to generic objects
ready to use, nice user interface
view day, week, month, three months and year
project sample which can be launched immediately and reused in your project
See the github "network" tab for a graphical navigation from the point of view of a given branch to see how other branches relate to it (i.e. what is available for merging).
svn checkout http://django-calendar.googlecode.com/svn/trunk/ django-calendar-read-only
svn: URL 'http://django-calendar.googlecode.com/svn/trunk' doesn't exist
so google search may reveal, but it's no longer exists.
There is another calendar alternative here, Django Event Calendar from 3captus, that offers something a bit simpler. I'm trying it out now, but it looks like a better fit for me.
From the features list:
Full feature calendar display using python calendar class
Support month scrolling (forward or backward)
AJAX add, modify, delete GUI
Require mimimum knowledge of Django, should be a good compliment after you are done with django tutorial
(http://www.djangoproject.com/documentation/tutorial01/)
Calendar and Event class can be used in any python project
Full unit test included
There are also some calendar functions built into Python itself, you can see a simple implementation here.
Today I ran into django-swingtime. Worth checking out.