The Django model is a class that represents a table or collection in our database. The fields in the database will represent the resources that OCCUR and other non-profits provide the community. Given the details outlined by the client, the models should have the given fields in the attached image.
The task includes:
Create and set up the models in models.py
Figure out how to store geolocations such that they are easy to input and use with the google maps API
Validate date, time, location and external link fields (e.g. a date for an event should never be set in the past, the link should be a valid URL, etc)
Test that fields are being successfully added to the database using the Django admin interface which enables you to visualize the models
This is a crucial task, as we cannot move on creating the requests for the API without it!
The Django model is a class that represents a table or collection in our database. The fields in the database will represent the resources that OCCUR and other non-profits provide the community. Given the details outlined by the client, the models should have the given fields in the attached image. The task includes:
This is a crucial task, as we cannot move on creating the requests for the API without it!![ERD for OCCUR Resources](https://user-images.githubusercontent.com/46876721/95117604-dd652380-0716-11eb-8023-4e3897f18fc4.jpeg)