dhmit / gender_analysis_web

4 stars 0 forks source link

Seeding Django Models #23

Closed farooqashar closed 3 years ago

farooqashar commented 3 years ago

There are various data that are provided for models in the project, such as constants used to define the pronouns for a Male Gender instance and Female Gender instance. These data structures might not be consistent, however, with the changes in the Gender, PronounSeries, Document, and other models in the web application. Therefore, this issue will look at ways to provide initial data accurately and efficiently for models. Seeding data into the tables of the database is important when a user uses an application for the first time since real usage of a model deals with non-trivial and non-empty data for analysis purposes and beyond. This issue will look at seeding initial data for the various models.

Method and Documentation

The issue will likely look into Django's fixtures technique in order to provide data. The Django documentation for providing this initial data for models can be found here.