-
Notifications
You must be signed in to change notification settings - Fork 687
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
virtualenv needs to be activated before adding users via manage.py #4656
Comments
Should the venv activation maybe be wrapped in a script or added in the |
Wrapper script is a fine idea here, it can handle:
Of course we'd still need to update the docs to map. Makes sense to call the script |
The best way is to point the executable to the inside of virtualenv. This is what happens by using entrypoints in |
To use an entry point, wouldn't we need what's now in |
We can just add some sys.path entries for that. Have to verify the change though. |
Copying my comment here from private discussion: Recap: The problem is that we need to make sure that Ideas/options:
I think 3 is the best thing to do for backwards compatibility (PR incoming from @rmol that does this) - that would close this ticket for the purpose of the 1.0.0 release. That said, I think we could also add an entrypoint - since it's a little nicer from the admin's perspective when they are interactively using the CLI. Thoughts @zenmonkeykstop @rmol @kushaldas ? |
I've tested that the changes from #4713 (options 1+3 above) do solve the problem; having the virtualenv python in the shebang line of manage.py makes it work. I think getting entry points working deserves a separate post-1.0.0 ticket. |
@rmol tested this, so closing |
Description
The documentation to add users needs to be updated after the recent change to use a virtualenv
Steps to Reproduce
Follow instructions in https://docs.securedrop.org/en/latest/create_admin_account.html to create an account
Expected Behavior
User account is made
Actual Behavior
Python dependencies cannot be found
Comments
We can instruct the user to activate the virtualenv first (
source /opt/venvs/securedrop-app-code/bin/activate
)The text was updated successfully, but these errors were encountered: