@login_required(login_url=reverse('login'))
но не работает, веб сервер пишет "django.core.exceptions.ImproperlyConfigured: The included URLconf 'BaseApp.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probabl y caused by a circular import."