Changeset View
Changeset View
Standalone View
Standalone View
docs/architecture.md
| Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | |||||
| **Images** and **Videos** should be represented by their respective models: `Image` and `Video`, | **Images** and **Videos** should be represented by their respective models: `Image` and `Video`, | ||||
| which provide additional attributes like resolution or duration. These models additionally | which provide additional attributes like resolution or duration. These models additionally | ||||
| have a one-to-one reference to a Static Asset instance, containing all the other data. | have a one-to-one reference to a Static Asset instance, containing all the other data. | ||||
| Preview pictures for all static assets are obligatory. However, for images and videos they can be | Preview pictures for all static assets are obligatory. However, for images and videos they can be | ||||
| generated automatically (e.g. by the `sorl-thumbnail` library). | generated automatically (e.g. by the `sorl-thumbnail` library). | ||||
| We want the entire `static_assets` app (i.e. file-representing models: `StaticAsset`, `Image`, `Video`) | We want the entire `static_assets` app (i.e. file-representing models: `StaticAsset`, `Image`, `Video`) | ||||
| to be portable, and independent of the other apps. In particular, the `DynamicStorageFileField` | to be portable, and independent of the other apps. | ||||
| should be left inside this app, even though it is used in other apps' models as well. | |||||
| ##### Licenses | ##### Licenses | ||||
| For now, licenses are only added to static assets (image, video, file). | For now, licenses are only added to static assets (image, video, file). | ||||
| ##### Storage locations | ##### Storage locations | ||||
| Storage location is a place to store all the film-related or training-related files. | Storage location is a place to store all the film-related or training-related files. | ||||
| In production, there's exactly one storage location (GCS, S3 bucket, etc.) per project, | In production, there's exactly one storage location (GCS, S3 bucket, etc.) per project, | ||||
| i.e. per film or per training. | i.e. per film or per training. | ||||
| Show All 35 Lines | |||||