I am using django-guardian to handle object permissions. In my settings.py:
ANONYMOUS_USER_ID = -1
However, when I try to run the server, I get an improperly configured error:
django.core.exceptions.ImproperlyConfigured: In order to use django-guardian's ObjectPermissionBackend authorization backend you have to configure ANONYMOUS_USER_ID at your settings module
I suspect this may be due to the fact that I do from guardian.shortcuts import assign
at the top of my settings.py, but I am not sure. Commenting out the import results in a successful server start, but trying to access any page gives me AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
which suggests that something is wrong with settings altogether (perhaps they are not being found correctly?).