Friday, April 19th, 2013

A birthday present for a friend made in Django

I have a friend whom is a huge, and I really mean huge movie buff. He has the largest movie collection that I know of, and one the largest TVs I have seen. He was previously managing his collection using another website someone built, which I think is personally not very well done and my friend deserves much better!

First I used the standard Python XML libraries to parse and extract all the movies he has on the old website, as I didn't want to re-enter all those movies, and I'm sure he wouldn't either. After it was all extracted and I was able to parse it easily through Python, I created the Django project and models for which the movie titles will live in. I created the first part of the website, including the importing of all his movies in just a mere 4.5 hours(according to my Subversion timestamp). I was truly amazed at what a full featured web application I could create in such little time, I could barely sleep last night as I wanted to continue work and add new features.

Now, the website is nearing completion and I thought I'd share it here with all my loyal readers. This web application has full IMDb integration, which still has a few bugs here and there that need to be ironed out. I am currently debating if I should open source this creation or not...

You can check this application at Cinema-Nick.com.

Comment #1: Posted 1 year, 4 months ago by David Goodger

Please do release it! I could use it too:
http://python.net/~goodger/personal/dvds.html

I think the totals that are available on http://www.cinema-nick.com/Format/ should be broken out onto other pages too, especially the front page: "Total ____ titles".

Comment #2: Posted 1 year, 4 months ago by Jon

You're a great friend.

Not sure if it is a bug in your code but I clicked on http://www.cinema-nick.com/Browse/12-monkeys and no IMDB info could load.

Comment #3: Posted 1 year, 4 months ago by Derek

The One is linked to One Flew over the Cuckoo's Nest image

Comment #4: Posted 1 year, 4 months ago by Derek

If you sort by rating and then go to (say) page 15, the sort is lost..

Comment #5: Posted 1 year, 4 months ago by Kevin Veroneau

Derek, "The One" has been rectified, the fetching from IMDb is all automated, so it's not perfect. All the movies here imported into the system, not manually entered. The newer titles are being manually entered by my friend.

The sorting order is actually lost on page 2. I need to use a cookie to keep track of sorting order or append it to the GET variables. Not sure how the Django Admin manages multiple GET variables when filtering.

Comment #6: Posted 1 year, 3 months ago by Derek

I think the sorting is handled by middleware. I am using a 3rd party app in the Admin to keep track of the various filters that are set,as well as 'current' page no., so that when I edit a record it takes me back to the same place.

About Me

My Photo
Names Kevin, hugely into UNIX technologies, not just Linux. I've dabbled with the demons, played with the Sun, and now with the Penguins.




Kevin Veroneau Consulting Services
Do you require the services of a Django contractor? Do you need both a website and hosting services? Perhaps I can help.

This Month

If you like what you read, please consider donating to help with hosting costs, and to fund future books to review.

Python Powered | © 2012-2014 Kevin Veroneau