support for custom user model and base template put in settings

support for custom user model and base template put in settings rather in template.