how to set django to use authentication for all views by default code example Example: django import user from django.contrib.auth.models import User