From the category archives:

Uncategorized

Great Indian Developer Summit, is the India’s largest developer conference, held at Bangalore, India; in its third edition this year. The conference concluded last Friday. The summit had about a 1000 visitors on the first day and a comparable number on the other days. The conference basically caters to the enterprises, and hence their focus [...]

{ 3 comments }

The most commonly used Rails commands and their Django equivalents Rails Django rails console manage.py shell rails server manage.py runserver rake None rails generate None rails dbconsole manage.py dbshell rails app_name django-admin.py startproject/manage.py startapp rake db:create manage.py syncdb The salient points to note are, Django has all commands via manage.py, Rails has it broken into [...]

{ 17 comments }

Rails Active records and Django models are more similar than they are different. This is a quick guide to converting between Rails 3 and Django 1.2, and is available on github at http://github.com/uswaretech/Acts-as-Django Defining models Both Django and Rails keep the canonical database representation in ruby or python. #Django class Post(models.Model): name = models.CharField(max_length = [...]

{ 16 comments }

Doing things with Django forms

by shabda on January 14, 2010

Forms are one of the best features of Django. (After models, admin, url routing etc ). Here is a quick tutorial describing how to do things with Django forms. Basic form Prob. You want to show a form, validate it and display it. Ans. Create a simple form. class UserForm(forms.Form): username = forms.CharField() joined_on = [...]

{ 41 comments }

Django-buzz

by shabda on December 12, 2009

We have updated the Django popular stories widget, which powers the widget in the side bar. It is now on Github. Earlier the code used was hardcoded to only find Django stories, but now you can create arbitary topics from admin. Get the code and create the widgets on your servers, (or let us know, [...]

{ 4 comments }

What is bpython? bpython is a fancy interface to the Python interpreter for Unix-like operating system. says the bpython home page. It provides syntax highlighting, auto completion, auto-indentation and such stuff. Unlike iPython, which implements then entire shell functions and emulates the standard python shell, and adds enhancements, bpython just adds features on top of [...]

{ 61 comments }

Foss.in is without doubt India’s largest FOSS technology conference. Lakshman gave a talk today on “Python metaclasses and how Django uses them”. Here are the slides from that talk. Doing magic with python metaclassesView more documents from Usware Technologies. [Edit] Some reactions, http://twitter.com/jaideep2588/status/6295483833 http://twitter.com/kunalbharati/status/6296572939 And the talk images, http://twitpic.com/rxhn7 You should follow us on twitter [...]

{ 12 comments }

Django for a Rails Developer

by Ashok on November 26, 2009

This is not yet another Django vs Rails blog post. It is a compilation of notes I made working with Django after having worked on Rails for years. In this post I want to give a brief introduction to Django project layout from a Rails developer point of view, on what is there, what is [...]

{ 99 comments }

The magic of metaclasses in Python

by shabda on November 21, 2009

Metaclasses are a way for you to have a class act as the template for another class. They are simlar to a classfactory, in that they create new classes. In words of Tim Peters Metaclasses are deeper magic than 99% of people are going to need. However, in right hands they can be a potent [...]

{ 26 comments }

Pycon India 2009 : A Review

by lakshman on October 2, 2009

Pycon India concluded last weekend at Indian Institute of Science, Bangalore. There have been so many python/django conferences recently, I have been tracking them literally all through the year. Another one, SciPy India just got announced. Week long, with sprints! Pycon India was attended by around 350 people and had 30 talks. I have attended [...]

{ 1 comment }