I don't know about your issue, but I wanted to offer you a little nifty
thing about dicts that might shrink your view a bit :)

Instead of an if/else to have a default value, use .get() on the dict,
like so:

screen = request.GET.get('screen', 'main')

If the key "screen" exists, it returns that, otherwise it returns
"main" :)


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to