A
A
Alexander2015-03-30 20:07:06
Django
Alexander, 2015-03-30 20:07:06

How to get values ​​from existing db table?

Good evening, tell me how to correctly describe an existing table in models, I connected to the database itself, there is a service_courses table, it has 4 columns id, usd, euro, gbr

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Abramov, 2015-03-30
@AlexMine

https://docs.djangoproject.com/en/1.7/howto/legacy...
python manage.py inspectdb > models.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question