use hasattr instead of getattr
move managers to separate file
add template layout
add loginrequired class view mixin
template createview
add generic get_absolute_url method to DatabaseModels