Archive

Django has a nifty url dispatcher which allows you to direct requests from a url to an event handler in the form of a callable object in python. If you followed the tutorials, your code is now probably littered with functions. You can also use classes for event handling as follows.