Total novice here and so far, I have been working through the tutorial app on building a poll. In the poll app, it seems that one can add questions and choices only through the shell. I want to add several questions which I have in a Pandas data frame that were programmatically generated. I want to insert all those questions and make them available for voting. I see that I could write a python script and run it in the Django python shell. Is this the recommended way? Any other better options out there?
Thank you for your response! I appreciate the options.
I thought of adding them through the admin since the questions would all be controlled by the admin (myself). However, I am not sure how to trigger the addition of the questions. Would I have to create a “POST button” on the admin page that gives a trigger to add the questions and choices? Does that sound reasonable?
I am also liking the fixtures approach. However, I am not sure what it means when the document says that the data is not loaded unless I use TransactionTestCase.fixtures?