9👍
You can try setting the PYTHONDONTWRITEBYTECODE environment variable:
PYTHONDONTWRITEBYTECODE
If this is set, Python won’t try to write .pyc or .pyo files on the import of source modules.
New in version 2.6.
4👍
Very late reply but I got here after Googling. You can try this:
python -B manage.py [any other commands/options]
For example:
python -B manage.py sql yourapp
However, this doesn’t work for some reason:
python -B manage.py runserver 0.0.0.0:5000
- Django datefield and timefield to python datetime
- Merge/join lists of dictionaries based on a common value in Python
Source:stackexchange.com