Tag Archives: python

Simplifying Django Form Data

I am working on an api of sorts. This requires that I create several methods in which data is appended in a url as a string of GET-data. To access GET-data in a Django view, you simply use request.GET['parameter']. However, it is a pain to write request.GET['parameter'] about 20 times when the only thing that [...]

(Another) simple web.py wiki

After spending considerable time learning Django, I stumbled upon another Python framework called web.py. Web.py is much simpler than Django and has far fewer built in features. For example, web.py has no built in object relational mapper, automatic admin site, or authentication classes. These features can be incredibly useful (and time-saving), but are not [...]

Django login script code snippet

Based off what I learned making my previous tutorial A simple introduction to Django forms, I made a somewhat more elegant login script which includes the ability to log out (what a novel idea!).

addthis_url = ‘http%3A%2F%2Fwww.alandelevie.com%2F2008%2F12%2F22%2Fdjango-login-script-code-snippet%2F’;
addthis_title = ‘Django+login+script+code+snippet’;
addthis_pub = ”;

A simple introduction to Django forms

As a Django noob neophyte, it took me some time to figure out how to create and handle forms. After a few headaches and sifting through a decent amount of documentation, I have learned the basic structure of creating a form using Django. The following will be a simple tutorial showing you how to create [...]