Yes, django can actually look at the DB schema and generate reasonable
models from it, check the inspectdb command docs:
https://docs.djangoproject.com/en/1.4/ref/django-admin/#inspectdb
You can also slowly modernize and existing DB, for example, the field
names or model names does not have to match 1:1 to the DB Tables, you
can map them, so instead of having a model for a table named
non_descriptive_name_0001 you can just call the model "Products" and
have it map the table "non_descriptive_name_0001", you can evolve
slowly the schema with south if the DB supports it.
Regards,
Carlos Ruvalcaba
On Wed, Jan 30, 2013 at 7:01 PM, <arc4gold@gmail.com> wrote:
> I have an existing database but I would like to design around that database
> using django...can I do this without altering the database in anyways
> significantly?
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment