add base handler generator to admin.py, remove debug, indent by 4 space instead of 2