djangopostgresqldjango-modelsdjango-formsdjango-admin

How to design database for fields like google forms?


I want to build forms and models with dynamic fields like Google Form. But I don't know what type of model.Fields use for this task. I using Postgres and I thinking about something like Hstore or ArrayField, but I'm not sure.

What is the best solution for this?


Solution

  • There are few solutions available for your task:

    If you use modern PostgreSQL version (9.3+) you should use PostgreSQL JSON fields because JSON supports different data types.