Skip to content

shell_plus: no module named 'blessings' #814

Closed

Description

@lbeziaud

Hi,

The wiki mention using shell_plus to give superuser privileges to an user however calling python manage.py shell_plus fails with: ModuleNotFoundError: No module named 'blessings'.

Installing blessings with pip inside the container fixes the issue. A simpler option is calling shell_plus with --plain. A third option is to use the default shell:

python manage.py shell
>>> from profiles.models import User
>>> u = User.objects.get(username=<USERNAME>) # can also use email

These last two fixes only require modifying the wiki :)

Activity

  1. lbeziaud commented on Apr 21, 2023

    @lbeziaud
    ContributorAuthor

    This might be related to #516

  2. Didayolo commented on Apr 21, 2023

    @Didayolo
    Member

    Good catch, thank you for the report. I have added the --plain flag in the Wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions