Monday, November 5, 2018

Re: Create rest service

Hi,


Have a look at the "migrate.py inspectdb" command documentation (https://docs.djangoproject.com/fr/2.1/ref/django-admin/#inspectdb).


This command generates the models for tables in an existing DB. To avoid messing with the existing data, these models are declared as non managed, which means that the tables are not created  nor modified by the migration process.


It should give you a good starting point.


Regards


Eric


From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf of soumyajit banerjee <soumyajit40cs@gmail.com>
Sent: Monday, November 5, 2018 12:55:42 PM
To: Django users
Subject: Create rest service
 
I have a one database (postgre). Same database currently using by one java application another one is php. But I want to create rest services through python django. Could you please guide me how to start. Actually I'm confused model creation, it's needed to create model or we can write direct sql query through view function. Please suggest me.

Regards,
Soumyajit

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f37e28be-a09b-4988-a97c-015dc477e0e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment