First time here? Check out the FAQ!
1

Does django show migrations command take into account environment variables set in project properties?

I have a function in my django settings which reads the VIRTUAL_ENVIRONMENT environment variable. When I run the wing command django show migrations, the environment variable is not appropriately set. I have set the virtual environment in the python environment of the project properties. I have also added in the inherited environment ! VIRTUAL_ENV = '' Did I do something wrong?

piscvau's avatar
526
piscvau
asked 2023-06-09 10:00:14 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2024-03-05 09:23:12 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

It should be setting the environment to what the project defines. What version of Wing is this? I think there were fixes to this in semi-recent versions.

Wingware Support's avatar
4.2k
Wingware Support
answered 2023-06-09 11:30:49 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer