My idea was to build an user interface for the model definition, so the developer (or in this case, the user) could define the model using a register form.
Like a user interface to define the model layer, I gess. 2017-01-05 12:34 GMT-02:00 Avraham Serour <tovm...@gmail.com>: > I guess you could play with metaclasses and generate the class definition > on runtime using information from the database > > But why? You can save the model definition on files, why saving them to > database and complicate your life? > > On Wed, Jan 4, 2017 at 10:38 PM, Guilherme Leal <lealhu...@gmail.com> > wrote: > >> Is there a way to populate Django model cache on the fly? >> I was thinking about saving the model definition on some backend >> (database for instance) and loading as needed. This way we can basically >> build a custom admin interface for the model definitions, and load the >> models (through "type()" or something similar) into the cache "on the fly". >> >> Guilherme Leal >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/django-users/CAOs3Lp7_R4RK%3DVconoQ1W6rzK8xYaiVJX-FHtyZ3 >> Cxg4MmbOow%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAOs3Lp7_R4RK%3DVconoQ1W6rzK8xYaiVJX-FHtyZ3Cxg4MmbOow%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CAFWa6t%2B5DO5u8p5fRrGAGkW1KYR2DZxc_ > wtkNQG7bX3u6v7JuA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFWa6t%2B5DO5u8p5fRrGAGkW1KYR2DZxc_wtkNQG7bX3u6v7JuA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOs3Lp6iQVoh3Sq99XVtJyBRmhup3xLNtYK125XczqUiFizoyg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.