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 [...]
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 = ”;
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 [...]