# Image data¶

## Notes¶

It is important to have celery running when using the webserver, or this system will not work.

Further, it is important that you run all code that might touch image data as the server user (www-data). The relevant scripts in scripts/ should use the correct user.

If you accidentally run the webserver as the incorrect user, you can fix the permissions with:

./scripts/fix_permissions.sh


## Configuration¶

You can configure where local data is saved by modifying OPENSURFACES_LOCAL_STORAGE (in config/settings_local.py). Note that if you change the storage to something remote like S3, you will need to update the backend in common.backends.OpenSurfacesStorage to cache self.local.exists(...). Otherwise, the system will be so slow that is is unusable.

OPENSURFACES_USE_REMOTE_DATA = True