Would it be correct to think of an app being basically one object 
equivalent to a single medium-to-complex class?

On Friday, May 24, 2019 at 3:30:40 PM UTC-5, Steve R wrote:
>
> Thank you!
>
> On Friday, May 24, 2019 at 3:08:33 PM UTC-5, Alex Heyden wrote:
>>
>> What you're describing is how you'd lay out the models in an app. It 
>> sounds like you may have one Django app. If I were writing this in Django, 
>> I might try to spin the workflow and task logic off into its own 
>> application if I thought that the core ideas of users and projects might 
>> feed some other bit of logic elsewhere, but YAGNI may apply.
>>
>> On Fri, May 24, 2019 at 12:19 PM Steve R <srum...@gmail.com> wrote:
>>
>>> Hi All - 
>>>
>>> I am a new Django user, coming from RoR. I am having some difficulty 
>>> wrapping my head around the whole 'apps' thing. 
>>>
>>> Here is my specific use case, and I would appreciate feedback on if I am 
>>> thinking about this correctly, and if not, how to think about it.
>>>
>>> I have a project management application I built in RoR that I am 
>>> reimplementing in Django. 
>>>
>>> A User has one or more Projects, each Project has one or more Workflows, 
>>> and each Workflow has one or more Tasks. Tasks are assigned to users, who 
>>> may or may not be the Project owner.
>>>
>>> In Django, a User would be an app, but...
>>>
>>> Would a Project be an app, with all the functionality of Workflow and 
>>> Task below it? Separate apps 'feels' wrong, because a task is such a minor 
>>> element (for example), but if I squint, I could see why someone might want 
>>> a Task for something else.
>>>
>>> Or
>>>
>>> Would I have an app each for Projects, Workflows and Tasks, then set up 
>>> logic linking the apps together?
>>>
>>> I thing the question for me is, at what point are the reusable apps in 
>>> Django intended to be independent - I get the impression, the answer is 
>>> 'wherever possible', but does that apply even to very small apps, as Task 
>>> would be?
>>>
>>> Thanks in advance for your insight.
>>>
>>> SR
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/eed74b23-f8a7-44ee-8e9f-bc19a56e50c0%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/eed74b23-f8a7-44ee-8e9f-bc19a56e50c0%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ccc2d082-2305-490b-8770-9a95508d2779%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to