Separating your views into multiple files works much the same way as models except for one difference – importing the views in __init__.py isn’t necessary unless you want to type a little less.
Without importing them in __init__, you’ll need to do this:
from app.views.blog import Blog |
But if you add them, you can do the following instead:
# import one view | |
from app.views import Blog | |
# import a bunch | |
from app.views import * |