Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync_roles command not found error when tried to sync the roles using command "django-admin sync_roles" #97

Open
grv1793 opened this issue Mar 22, 2019 · 3 comments

Comments

@grv1793
Copy link

grv1793 commented Mar 22, 2019

No description provided.

@filipeximenes
Copy link
Contributor

Hi @grv1793 can you provide some more information? What versions are you using? What error message did you see?

@grv1793
Copy link
Author

grv1793 commented Mar 24, 2019

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.

@eeintech
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants