Re: Dynamic model fields using mysql?

2018-07-03 Thread hanleybrand
One question I'd ask would be why you wouldn't just save the files either on disk or even in the database (using the BLOB datatype) if it absolutely had to be in the database... then if you needed to manipulate/display/read them at a later date you would just load the files in question. If yo

Re: Dynamic model fields using mysql?

2018-07-02 Thread hardik dadhich
it means that I can't do it on MySQL database! should I change the DB type and if so which one should I prefer! Postgres or NoSQL? On Tuesday, July 3, 2018 at 3:20:40 AM UTC+5:30, Melvyn Sopacua wrote: > > On maandag 2 juli 2018 21:33:35 CEST hardik dadhich wrote: > > > > > Can anyone tell me

Re: Dynamic model fields using mysql?

2018-07-02 Thread Jason
or you can move to postgres and take advantage of the jsonfield integration with django. On Monday, July 2, 2018 at 3:48:46 PM UTC-4, hardik dadhich wrote: > > Hello, > Can anyone tell me how can I make dynamic Django model fields? I mean to > say that I want to save excel file data in Django mo

Re: Dynamic model fields using mysql?

2018-07-02 Thread Melvyn Sopacua
On maandag 2 juli 2018 21:33:35 CEST hardik dadhich wrote: > Can anyone tell me how can I make dynamic Django model fields? I mean to > say that I want to save excel file data in Django model using MySQL. and > excel column can vary. The user can upload 100 column table or he can be > upload 1000

Dynamic model fields using mysql?

2018-07-02 Thread hardik dadhich
Hello, Can anyone tell me how can I make dynamic Django model fields? I mean to say that I want to save excel file data in Django model using MySQL. and excel column can vary. The user can upload 100 column table or he can be upload 1000 column table in the database. so it is possible to add dy

Re: Dynamic Model Fields

2007-04-12 Thread Olivier Guilyardi
Olivier Guilyardi wrote: > I'm still a python newbie, but it seems to me that there could be a way to > modify the model definition before Django knows about it: Okay, I found the Field.contribute_to_class() method which seems to work just fine. I'm calling it right after my model class declarati

Re: Dynamic Model Fields

2007-04-11 Thread Olivier Guilyardi
Tim Chase wrote: >> Actually the labs where just an example: one laboratory will >> have one installation of the application, and the dynamic >> fields will only apply within the scope of this installation. >> There's no such thing as consistency accross labs. > > It still sounds like the above s

Re: Dynamic Model Fields

2007-04-11 Thread Tim Chase
> Actually the labs where just an example: one laboratory will > have one installation of the application, and the dynamic > fields will only apply within the scope of this installation. > There's no such thing as consistency accross labs. It still sounds like the above scheme would do the trick.

Re: Dynamic Model Fields

2007-04-11 Thread Gulopine
On Apr 11, 1:36 pm, Olivier Guilyardi <[EMAIL PROTECTED]> wrote: > However, watching the MySQL verbose log, I realized that retrieving properties > as well as their definitions (and enumeration values) to properly display an > detail view or edition form execute a _lot_ of SQL queries, when this c

Re: Dynamic Model Fields

2007-04-11 Thread Olivier Guilyardi
Tim Chase wrote: >> I'm in the process of turning telemeta [1] into a django >> application, and need dynamic model fields: we want to allow >> site administrators to easily add/remove "fields" to our main >> data structure, the MediaItem, which represen

Re: Dynamic Model Fields

2007-04-11 Thread Tim Chase
> I'm in the process of turning telemeta [1] into a django > application, and need dynamic model fields: we want to allow > site administrators to easily add/remove "fields" to our main > data structure, the MediaItem, which represents an audio/video > resource. >

Dynamic Model Fields

2007-04-11 Thread Olivier Guilyardi
Hi, I'm in the process of turning telemeta [1] into a django application, and need dynamic model fields: we want to allow site administrators to easily add/remove "fields" to our main data structure, the MediaItem, which represents an audio/video resource. Example: for a