When to create a new app

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

When to create a new app

Cictani
Hello,

I have problem to figure out when I should create a new app in my Django project. Can you give me some Tipps?

Best regards

Andreas

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/be81b68a-8a0a-436a-8115-c97166348e9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: When to create a new app

Andréas Kühne
Hi Andreas,

I would say that this depends on your use case. I try to group functionality or domains in my apps. So for example I have all of the invoicing views and models in one app, all of the user models and views in another app. There are some models that have relationships to other models in other apps but thats the way I do it. So I try to group all of the functionality that is the same in one app.

If you want to create a reusable app however (for posting on pypi), you should not add any dependencies on other apps - but that is a different conversation. 

Hope that helps!

Regards,

Andréas

2018-03-09 19:06 GMT+01:00 Cictani <[hidden email]>:
Hello,

I have problem to figure out when I should create a new app in my Django project. Can you give me some Tipps?

Best regards

Andreas

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/be81b68a-8a0a-436a-8115-c97166348e9b%40googlegroups.com.
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 [hidden email].
To post to this group, send email to [hidden email].
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/CAK4qSCcqjoQBvj6RPKXZzGk2Z4kGOBxi-KPD7vRx80_i1mwxwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: When to create a new app

Cictani

Hi Andréas,

thank you. Currently I am working on a db app for ant species (https://github.com/Cictani/antkeeping_info). Each ant species can be native to several countries and other regions (states for example). I created a separate regions up which contains the models for Country and Region .
It also contains views to query ants native to a specific regions. However now I am thinking if it actually all belonged into the ants app... Since in the ants it is all too related.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/4c36c78e-ce13-4335-bd60-f34db1a4e1ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: When to create a new app

ansh srivastav
Most amazing part about django is every stuff related to a new app!
Suppose you may want to create a game and in that first the user have to intimate the move, so for that an app is created !


On 10 Mar 2018 21:40, "Cictani" <[hidden email]> wrote:

Hi Andréas,

thank you. Currently I am working on a db app for ant species (https://github.com/Cictani/antkeeping_info). Each ant species can be native to several countries and other regions (states for example). I created a separate regions up which contains the models for Country and Region .
It also contains views to query ants native to a specific regions. However now I am thinking if it actually all belonged into the ants app... Since in the ants it is all too related.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/4c36c78e-ce13-4335-bd60-f34db1a4e1ce%40googlegroups.com.
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 [hidden email].
To post to this group, send email to [hidden email].
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/CAHMQ530%2BG3LndzArG_pukT52Fjy%2BbozLe_GqJgPD-ZYTuRO7LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.