Import MySQL tables into Django -
i have created php application connects mysql database , displays table information. django concerned, familiar them beingness created in sqlite creating relevant models.
is there way in reverse? have django create models tables in mysql?
you can utilize existing schema create tables. official documentation at: https://docs.djangoproject.com/en/1.7/howto/legacy-databases/
there 2 commands:
python manage.py inspectdb
this give output of running:
python manage.py inspectdb > models.py
django won't know how want break these models separate application modules, you'll need on own, if necessary.
django django-models
No comments:
Post a Comment