django-role-permissions
django-role-permissions copied to clipboard
sync_roles command not found error when tried to sync the roles using command "django-admin sync_roles"
Hi @grv1793 can you provide some more information? What versions are you using? What error message did you see?
When using "python manage.py sync_roles" it works. But when using django-admin, i get this error
Django version: (ironman) apples-Air:ironman apple$ django-admin version 1.11.20
Shell output: (ironman) apples-Air:ironman apple$ django-admin sync_roles No Django settings specified. Unknown command: 'sync_roles' Type 'django-admin help' for usage.
Same issue here, ./manage.py sync_roles works but django-admin sync_roles does not as it fails to import the project settings, I've tried the few tricks from the Django docs but no luck. I never use django-admin so not sure where is the problem.
Maybe update to manage.py method or add note to your docs?
https://django-role-permissions.readthedocs.io/en/stable/admin.html#management-commands