Friday, January 30, 2015

Re: using Django on an existing mysql schema

I'm certainly no Django expert, but I'm not sure if you can use the orm and an already existing database. However the documentation states that you can write all queries yourself, essentially not using the orm. However if you do that, I'm wondering why you want to use Django at all?
And pushing business logic into the database sounds like bad design to me (model and controller should be decoupled in MVC like patterns).

About the signed and unsigned changes - did you check the documentation: https://docs.djangoproject.com/en/1.7/ref/models/fields/
And enum is (afaik) not available in Python, maybe that's why it changed it to char.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b7bd5fcc-4093-401e-84fc-8c3175d9ee68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment