boxed / django-fastdev

An app to make it safer, faster and more fun to develop in Django
BSD 3-Clause "New" or "Revised" License
156 stars 13 forks source link

Check if virtualenv ENV is set #36

Closed Mte90 closed 9 months ago

Mte90 commented 9 months ago

As you can see from the screenshot that alert can be executed also in other context but is wrong (I am using poetry and the .venv folder exists). This tiny patch check if the ENV variable is set, sure can be improved but atleast in my case I don't get that alert anyway.

Screenshot_20240223_154840

boxed commented 9 months ago

Thanks!

The code before and after does look a bit overly complex... so I smell something fishy, but let's try this for now