Minimal dynamic model in django example
-
Run migrations and create tables
./manage.py migrate
-
Add all the fields you need in the
fields
model, with one of the following type:TextField
IntegerField
DecimalField
DateField
DateTimeField
BooleanField
(You can add more in
Field
model) -
Run this command to recreate the dynamic model (it will drop the previous model first
./manage.py make_dynamic_model
MIT License