In order to store, search and view FCC files (and their data provided by the FCC) to individual file pages (and data we extract), we need new models and admins.
The plan:
[x] Define a base FilePage model with the following fields
[x] Define a CableFilePage model, that inherits from FilePage
[x] with a file field (as a ForeignKey to CableFile)
[x] Define a FacilityFilePage model, that also inherits from FilePage
[x] with a file field (as a ForeignKey to FacilityFile
[x] Define an admin for CableFilePage
[x] Define an admin for FacilityFilePage
[x] Run python manage.py makemigrations fcc_opif
[x] Then run python manage.py migrate
[x] Somewhere in here, we may find that we need to install the Pillow Python library
[x] If so, do that with pipenv install pillow
[ ] Because it relies on underlying C libraries, we may need to install a specific version of Pillow that will work in AWS Lambda. Zappa tries to help manage this via their lambda-packages project.
In order to store, search and view FCC files (and their data provided by the FCC) to individual file pages (and data we extract), we need new models and admins.
The plan:
FilePage
model with the following fieldspage_num
(as anIntegerField
)image
(as anImageField
)CableFilePage
model, that inherits fromFilePage
file
field (as aForeignKey
toCableFile
)FacilityFilePage
model, that also inherits fromFilePage
file
field (as aForeignKey
toFacilityFile
CableFilePage
FacilityFilePage
python manage.py makemigrations fcc_opif
python manage.py migrate
pipenv install pillow