Forests or django-admin without Auth app

I created my own Auth app and now Admin is not working, what can you suggest?

Exception now: "User" object has no attribute "is_authenticated"

I know that my Account doesn't really have such a method. So I have 2 ways: - change admin - adapt my user system

My question is, is there a way to easily disable the auth related admin

-2


a source to share


1 answer


See django / contrib / admin / views / decorators.py file:

from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login

      



They are used in a decorator staff_member_required

that protects access to the admin application.

An admin app is required django.contrib.auth

- you can try to disarm it, but that's a bad habit (Django is not RoR, Python is not Ruby).

+3


a source