jakubfabian / topo

GNU General Public License v3.0
0 stars 0 forks source link

Move views to subdir. #30

Closed Loisel closed 8 years ago

Loisel commented 8 years ago

I suggest to split the ever-growing views.py and create, e.g., views/wall_edit.py and use from wall_edit import wall_edit in the __init__.py directory as suggested also on stack overflow.

jakubfabian commented 8 years ago

Or make it a ``miwalls'' app?

Loisel commented 8 years ago

You mean miviews? But then again we would like to split one big views.py into seperate files... (?)

datenhahn commented 8 years ago

Here an explanation of the subapplications setup: http://stackoverflow.com/questions/2670031/large-django-application-layout

I aggree with @Loisel , when stuff grows bigger we probably still want to split the views in own module-files. This would also encourage to not put everything into one function. With the current setup, all in one view file I hesitate to factor out functionality of one view into functions as they would further pollute the views.py .

Loisel commented 8 years ago

I suggest we reopen when the issue comes up again, for now is fine.