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

blessings for shell_plus #1151

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

bbearce
Copy link
Collaborator

@bbearce bbearce commented Sep 11, 2023

@ mention of reviewers

@Didayolo

A brief description of the purpose of the changes contained in this PR.

We perform this sequence to get shell access to the django container:

docker-compose exec django bash
python manage.py shell_plus --plain # We only do this because blessings was missing

Now we can use shell_plus:

docker-compose exec django bash
python manage.py shell_plus

Issues this PR resolves

A checklist for hand testing

  • run docker-compose exec django bash; python manage.py shell_plus to test
  • check docs are the way we want them (change docs post accepting PR)

From the docs...:

With superuser privileges, the user can edit any benchmark and can access the Django admin interface.
from

docker-compose exec django bash
python manage.py shell_plus --plain
>>> u = User.objects.get(username=<USERNAME>) # can also use email
>>> u.is_staff = True
>>> u.is_superuser = True
>>> u.save()

to:

docker-compose exec django bash
python manage.py shell_plus
>>> u = User.objects.get(username=<USERNAME>) # can also use email
>>> u.is_staff = True
>>> u.is_superuser = True
>>> u.save()

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@Didayolo Didayolo linked an issue Sep 11, 2023 that may be closed by this pull request
@Didayolo Didayolo self-assigned this Sep 21, 2023
@Didayolo Didayolo merged commit 2e4f026 into develop Sep 21, 2023
1 check passed
@Didayolo Didayolo deleted the issue_1150_shellpluss_and_blessings branch September 21, 2023 15:49
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

Successfully merging this pull request may close these issues.

add blessings to requirements.txt
2 participants