Tuesday, April 21, 2015

Re: Create models table from exists database?

Hi,
Yes, in principle you can.The keywords are "legacy database":
https://docs.djangoproject.com/en/1.8/howto/legacy-databases/

Best

2015-04-21 9:15 GMT+02:00 Dario Concilio <concilio.dario@gmail.com>:
> Hi to all!
> I'm new of django, I've a question for you: Can I create a new project using
> an exists database?
>
> I've a domotic system on Ubuntu Server, with a Postgres database that has
> several table. Actually the system uses a table by a python service and PHP
> portal for data management of domotic configuration.
>
> I would change portal admin with a "django" portal, can I create a new
> django project using this database?
> Django framework allows me to generate the system tables and complete models
> (model.py) from existing ones?
>
> PS: I imagine this approach as the technique called "Database First" of
> various ORM.
>
> Thanks to all.
>
> --
> 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/e38f24fd-ebce-40ff-b53b-b94c5234d07a%40googlegroups.com.
> 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+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/CAKUKWznN00eCQCXXzxwxMe3j%2BaamQ9jAtGTT17_Sg23JkknW0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment