django-mutant

170 views
Skip to first unread message

Eddilbert Macharia

unread,
Apr 30, 2014, 4:12:27 AM4/30/14
to django...@googlegroups.com
Hello Guys,

I'm trying to create dynamic models using django-mutant and im having alot problem understandingg what is really happening, i have tried the provided guide http://integricho.github.io/2013/07/22/mutant-introduction/ but i'm still confused, is there any one out there who understands on how to use this app.

The part of creating the actual table i understand but creating the columns/fields is really giving headache. please assist


Regards

Simon Charette

unread,
Apr 30, 2014, 3:25:33 PM4/30/14
to django...@googlegroups.com
Hi Eddilbert,

I'm the author of django-mutant. May I ask you what exactly you're trying to achieve with this application?

Creating new field should be as simple as importing a field definition subclass from a contrib.* application.

e.g.

from mutant.contrib.text import CharFieldDefinition

CharFieldDefinition.objects.create(model_def=<your_ModeDefinition_instance>, name='mycharfield', max_length=100)

Simon

Eddilbert Macharia

unread,
May 2, 2014, 9:24:07 AM5/2/14
to django...@googlegroups.com
Hi Simon,

Sorry for the delayed response,

I am trying to create a data collection system. i wanted the user to be able to create their models based on the data they want to collect.

i followed the tutorial and also tried the sample application from the tutorial but i got the following error.

Exception Type:TypeError
Exception Value:
__init__() takes at least 2 arguments (2 given)

But i think my biggest problem was i could not get a documentation for app explaining how to use.is there a tutorial or a better documentation

Regards, I'm honored for your reply and though i did not understand how to use the app fully i liked it.







Reply all
Reply to author
Forward
0 new messages