Archive
Presentation on basics of Django
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 https://gitorious.org/saga-presentations . Feel free to modify them for your own needs 🙂
Django , Interpolate two strings in a template
While i was working on my weekend project http://downloader.zer0c00l.in/, 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.
My maiden Drupal webportal
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 😉 http://www.mepcoeng.ac.in:81/iconct09
Issues:
For some people their organization may be blocking port 81, so use a web proxy like https://ctunnel.com/ 😉