I like using App Engine’s webapp framework. It’s very simple and similar to the web.py framework. However, simple tasks such as outputting data or rendering templates require way too much boilerplate text. For example, to output a rendered template, you must type:
1
2
3
4
5
6
7
8
template_values = {
‘greetings’: greetings,
[...]
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 [...]
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 [...]
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 [...]