I'm really struggling with this whole app-idea. I read a lot of tutorials and style guides and I know I should try to create specialized apps, that do exactly one thing. This all makes sense when looking at some simple tutorial project but as soon as it gets to a complex real life project, I find myself unable to determine how I should draw the lines between different apps.
One of the problems is, that I want to have one site (or multiple sites) where the user sees a lot of different stuff. Stuff that should be from different apps, when following the app design rules. How would I realize something like this? My first idea was to create one app called ui
, that just handles ALL the views the actually lead to a template and all the other apps provide the models and helperfunctions. But I fear that the ui
app will become way to big.
To give you a small example: Lets I want to have a site where the user can do the following tasks:
- Select a subject
- set some options to the selected subject
- upload files that are associated with his account
- assign some of the uploaded files to the subject
- record some audio which will be related to the subject
Right now, I would create three apps:
- subjects (contains the subject model and some related models)
- resources (contains the resource model, handles uploads)
- audio (handles all the audio recording and processing stuff)
But then, I would need some kind of main
or ui
app to handle how these apps interact and to create the actual site, where all the apps are somehow involved.
So, is there any "right" way to do this? Or are there any patterns that I can use? I would also appreciate links to good resources about this topic, even though I already read quite a few.