Skip to content

Autoreloading when .pyc files change is annoying

The first time I logged into the development environment, the following race condition was triggered:

  1. I clicked logged in
  2. Some python file was loaded for the first time (psycopg2's errorcodes.py)
  3. cpython created the file /venv/lib/python3.6/site-packages/psycopg2/__pycache__/errorcodes.cpython-36.pyc
  4. Whatever in the development environment does auto-reloading killed and restarted the server
  5. My request was interrupted, and an error page was shown in the browser

I imagine there is no value in reloading on .pyc file changes: is there a setting where we can configure what types of files cause a reload?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information