3👍
✅
Files with the .py extension are linked to your default Windows Python installation. One way of using your virtualenv python executable instead is by typing python manage.py <command>
instead.
Please also see the accepted answer of a question I posted on this matter before.
1👍
You don’t specify which version of virtualenv you’re using. Recently, they’ve made --no-site-packages
default, but if you’re using a version before this change was instituted, you need to specify that switch to prevent the main site-packages from loading in.
- [Django]-What is the best way to check if data is present in django?
- [Django]-Unique_together constraint on multiple columns with NULL values
- [Django]-How do I move project folders in PyCharm Project View?
- [Django]-How to add all foreign key relations in Django?
- [Django]-Django does not render after POST request
Source:stackexchange.com