'Is it possible to create a Django model from csv input with non-standardized column names/number of columns
I'm working on a project where the end user will provide a semi-standardized csv input to my program. By semi-standardized, I mean that most columns will always be present, but each csv has the potential to have an extra column or two that is unique to that csv alone. Because of this I don't think it's possible to pre-define an all encompassing Django model (I may be wrong, and would love to be shown otherwise), so my question is: is it possible to update/change the Django model's structure from views.py (or in some other way), based on the csv input file, to capture these non-standard columns and store the uploaded CSV to my db? If not, is there another way to go about solving this problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
