Archive for the ‘webdev’ Category

Presentation on basics of Django

May 1, 2011 Leave a comment

I did a presentation on basics of Django in chennai python user group (chennaipy) meeting last week. This post contains the presentation and code samples i used in the talk.

The presentation and code samples were designed to help Django newbies.  There are some differences in  the code i used in the presentation and the actual code samples , also i was not able to get the alignment of python code correct in the presentation.

The presentation can be downloaded from here

The code samples and source of the presentation (latex-beamer) are available under GNU Free documentation license . Feel free to modify them for your own needs 🙂


Django , Interpolate two strings in a template

April 15, 2011 Leave a comment

While i was working on my weekend project,  I had to concat  interpolate two strings inside a template,  first string was hard coded in the template and another one had to be passed from the view. Initially i tried something like

<a href="/view/logs/?page="{{ page }}> next </a>

That resulted in <a href=”/view/logs/?page=”>next</a> .  Django completely ignored the {{ page }}. After scratching my head for a long time i removed the quotes and rewrote the code into

<a href=/view/logs/?page={{ page }}> next </a>

That worked as expected.

Categories: django, fedora, foss, fun, python, webdev Tags: ,

My maiden Drupal webportal

April 4, 2009 Leave a comment

I have been asked to develop a web portal for my departments upcoming international conference, iconct09.

First i showed them drupal.They were using old and outdated proprietary server side scripting language ASP.

I took care of drupal modules,juniors took care of the themes, i would like to mention some of the modules i used.

Conference ->Awesome module by zyxware technologies, i personally thank Mr.Santhosh raju who now maintains the module for zyxware,When ever i say there is an issue with the module, he helped me by fixing the code immediately, i sometimes wondered is this an example for cathedral and Bazaar, yes it is, the developer directly gets feedback from the end user and changes things.

Email registration -> allows user to login using email id

Feedback -> Cool floating feedback bar

CCK ->content construction kit (needed by Conference module)

Auto assign Role ->Assigns default role to newly registered users

SMTP authentication support -> allows you to use another smtp server (local windoze smtp server or gmail smtp server)

Admin menu and Admin menu drop down -> Cool drop down menu for admins

Jquery Menu -> To enable cool expandable jquery menus.

Backup and Migrate -> To backup mysql database

Theme -> Acquia Marina

Have a look at the web portal and feel free to give a feedback 😉


For some people their organization may be blocking port 81, so use a web proxy like 😉

Categories: drupal, Linux, webdev