amitu / importd

django based mini framework inspired from sinatra. fully compatible with django.
http://amitu.com/importd/
BSD 3-Clause "New" or "Revised" License
511 stars 30 forks source link

Handle exception if it raises inside view/models etc. #57 #58

Closed if1live closed 9 years ago

if1live commented 9 years ago

Remove duplicated code

I think that __import__(...) is duplicated code. I make a function then use it. The role of function is exception handling and importing.

But, I can't judge which style is more better. Which code do you prefer?

Showing exception manually. Maybe extending this code, we can implement good exception handling.

amitu commented 9 years ago

The current style is good.

More than exception handling I think we need logging support. Currently we do not do any logging, and I think we should log some things, or even set up logging if its not set.