Latest Entries

Django database backup view

posted: September 5, 2008, 1:50 a.m. Be the first to comment.

Note: This view is creating an error "IOError: [Errno 2] No such file or directory: 'backup.tar.gz'". But when we run the view line by line in the Django shell. It works fine. I'm working on it right now. Suggestions are welcome.

We all backup our databases once in a while. Well there are several ways to take a backup of the database. Most of the people export their database as a .sql file and back it up. Here is a small view I constructed to backup the django database. As far as my requirements are conserened I put together ...

read more

This Week in Django

posted: September 1, 2008, 10:44 p.m. Be the first to comment.

This week in Django is an amazing podcast conducted by Michael Trier and Brian Rosner. Its been a while since they started doing podcasts. Congratulations on reaching the 36th week in Django. 9 good old months and yet they have good things coming all the way.

Every often they interview a django related person and share his experiences with django. This time its going to be none other than James Bennett who is the release manager of Django and author of the book "Practical Django ...

read more

Building a Brightkite using django-Part-2

posted: August 20, 2008, 8 a.m. 3 comments

In Building a Brightkite using django-Part-1, I concentrated on the app backend where models, forms & views are created. Since most of the readers were more interested in the templating part, I will be concentrating on the templating part of the app. This session picks up where the initial part left off. In part-1 I queried the Yahoo geo coding service to retrieve location data of a particular location. Now lets display the result of the search performed.

The checkin.html template displays results of the search performed. We can use simple map embed ...

read more

Building a Brightkite using django-Part-1

posted: August 17, 2008, 11:05 a.m. 2 comments

As we know Brightkite is a location based social network where users can checkin into a location and make posts. I always had a thought on how we can acheive this functionality using django framework. Last week I started off this project with an eye on contributing it to Pinax project. I talked to Jtauber and I was lucky enough to get a chance before the feature freeze of pinax.

To start this project we need to recollect the basic requirements.
1. Registration for users. This can be acheived ...

read more

Yahoo's new API BOSS

posted: July 29, 2008, 7:26 p.m. 8 comments

For about an year I was wondering if google provided any API's for the 3rd party players to utilize google search. In fact google has supported the Soap API for few years. The Soap API provided a lot of freedom for the developers to utilize the Google search remotely. The main advantage was that we could hide the backend queries from the presentation. In simple terms the results do not have the brand name google. Although google limited the queries to 1000 per day it was worth while. As of December 5, 2006, google is no longer ...

read more

email results of cronjob

posted: May 29, 2008, 12:14 p.m. 1 comment

I sync various data from twitter, brightkite and flickr into my blog. I use cronjob to achieve this. It is important for me to know if my cron's are running fine. In my case, I had to tough time getting a cron running. The first problem I encountered was to get DJANGO_SETTINGS_MODULE set. This variable is the key for a django module to execute. I saw that most of the scripts on the web set DJANGO_SETTINGS_MODULE in the cron tab. But it didn't work for me. So I created a seperate python file(sync.py) with DJANGO_SETTINGS and imported all the models ...

read more

countries list for registration

posted: May 28, 2008, 11:27 p.m. Be the first to comment.

I started off my new django project with user registration module. I wanted to customizr) the django-registration to my needs. With the help of b-list, I started off to write my own registration form to handle registration. I seeked for help in django IRC channel.

After a while I found help in the form of Alisdair Sullivan. He delivered me the exact chunk of code I was looking for. With his prior permission I am making that code available to everybody. This countries.py contains 2 simple dictionaries. One with all the states in ...

read more

Sync brightkite to django

posted: May 19, 2008, 9:58 p.m. 1 comment

I have recently started up with brightkite. I really liked their location based social network. The ability to check in to a location is really a cool feature. The ability to post photos and posts from a location is very well done. They make great memories. The recently introduced iPhone interace is simply the best interface I ever saw for an iPhone.

Currently the brightkite-syncr app is working fine. But still I am yet to test it. I will submit the application to django-syncr once I feel its perfect. Brightkite ...

read more

My Social Profiles

posted: May 3, 2008, 11:26 p.m. Be the first to comment.

Well its a well aware fact that web is growing at enormous rate. There has been quite a bunch of social networks out there on the web. But still I am only intrested in using a few of them. I twitter, very frequently. I found a lot of reasons to twitter. Its a very efficient way to find immediate answers to questions. Also I found a lot of new things on web through twitter. A simple and efficient way to share feelings across friends. Also the amazing thing about it is, the privacy issues are very less. Twitter ...

read more

layout the real tough job

posted: May 1, 2008, 9:22 p.m. 1 comment

Since, March 2007 I started working on my blog where I learned a lot of things about Django. I could get the blog app running in few days. After that I started writing my templates, I realized the importance of design for a webpage. I have never designed a page from scratch. This was my experiment with design. Though it is a fact that I suck at CSS, I decieded to give a fight. I am big fan of Jeffcroft.

My first lessons of design began by observing jeffcroft.com. Yes, I used to ...

read more

my first post

posted: April 6, 2008, 8:17 p.m. 7 comments

#!/usr/bin/python print "Hello World" 

That's how all the programming books state their first program as. Well I wonder who set that standard. Most experts say that it is a simple program to show how to print a string. Sounds convincing enough. Ok anyway I just want to say Hello World as a start for my new django powered blog.

read more

Archives

2008