I set ANONYMOUS_USER_ID in “/projectname/projectname/settings.py”
ANONYMOUS_USER_ID=-1
But it guardian.conf.settings raise ImproperlyConfigured when I use syncdb.
raise ImproperlyConfigured(“In order to use django-guardian’s ”
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
ANONYMOUS_USER_IDANONYMOUS_USER_IDis the output of inside./manage.py diffsettings