Z
Z
zelsky2015-11-12 22:46:59
Django
zelsky, 2015-11-12 22:46:59

How to write views correctly?

Did I understand correctly that for each application it is necessary to write the logic in the inside for each separately and not to shove all the logic into one view?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2015-11-12
@zelsky

All the logic of working with data needs to be implemented in models, not views, or I didn’t understand you.
At least one views.py file per app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question