Skip to content

Conversation

MeowyCat1
Copy link

Added instructions for enabling PowerShell script execution on Windows.

Added instructions for enabling PowerShell script execution on Windows.
Your shell prompt will change to show the name of the activated
environment.

In windows, PowerShell scripts such as the venv activation script are blocked by default. To fix this, you should open PowerShell and run the command Set-ExecutionPolicy AllSigned or another policy that allows PowerShell scripts. Learn more at https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't comment on whether this makes sense since I'm, not very familiar with PowerShell, but this line is excessively long compared to any other lines in this file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made it ever so slightly shorter, but wasn’t quite sure how to shorten it by a large amount

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was talking about adding linebreaks, not actually shortening the content ;)

Copy link
Member

@ThiefMaster ThiefMaster Oct 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, being a rst file, links should be correctly marked as links and not just plaintext urls. You can check other links in the same file for examples on how that's done.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve added line breaks, but I’ve never used rst before and can’t figure out how to do the links…

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figured them out now, I was using the wrong type of apostrophe 🤦

Reword PowerShell script execution policy instructions for length
Split the PowerShell script execution policy instructions into separate lines for better readability.
Updated the link format for PowerShell execution policy documentation.
@MeowyCat1
Copy link
Author

Just checked my build and the link is broken...

@MeowyCat1
Copy link
Author

Fixed! Silly missing underscores.

@davidism
Copy link
Member

I don't think we need to go into this detail here. In fact, I really want to reduce this page, and point people at official docs for uv, virtualenv, etc instead.

@MeowyCat1
Copy link
Author

I’m not really sure how to link to that note in the docs as you have to scroll halfway down that page to actually find that note - it would probably be easier for a user to just read it straight from the flask docs, unless you can find a better link that I could use.

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.

3 participants