django app organization

Posted by iHeartDucks on Stack Overflow See other posts from Stack Overflow or by iHeartDucks
Published on 2010-06-07T01:44:16Z Indexed on 2010/06/07 1:52 UTC
Read the original article Hit count: 370

Filed under:

I have been reading some django tutorial and it seems like all the view functions have to go in a file called "views.py" and all the models go in "models.py". I fear that I might end up with a lot of view functions in my view.py file and the same is the case with models.py.

Is my understanding of django apps correct?

Django apps lets us separate common functionality into different apps and keep the file size of views and models to a minimum? For example: My project can contain an app for recipes (create, update, view, and search) and a friend app, the comments app, and so on.

Can I still move some of my view functions to a different file? So I only have the CRUD in one single file?

© Stack Overflow or respective owner

Related posts about django