Fixeed urls.py to match latest usage. Sprinkled logging statements liberally.