how do you name the 'main' app?

3 views
Skip to first unread message

gabor

unread,
Sep 20, 2006, 5:51:18 AM9/20/06
to Django users
hi,

i'm constantly facing the following naming-problem.


let's say you are going to create a web gallery, because you need one.

so you start with:

django-admin.py startproject gallery


and now, you want to do "./manage.py startapp <app-name>".

but what should the app-name be?

from a practical point of view, it should be 'gallery' again,
because that's what you are going to create.

but i remember that once i had a problem with the app having the same
name as the project, so i'd rather not do that.

so, what should happen now?

call the app as 'main'? seems as a particularly ugly solution.

so, how do you name your 'main' app in a django-project?

gabor

Kenneth Gonsalves

unread,
Sep 20, 2006, 6:09:12 AM9/20/06
to django...@googlegroups.com

On 20-Sep-06, at 3:21 PM, gabor wrote:

> so, how do you name your 'main' app in a django-project?

i give a name related to the website

--

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/


Flavio Curella

unread,
Sep 20, 2006, 7:04:19 AM9/20/06
to Django users
I call the project as the website (the domain or my client name), and
the app just like what it is.

startproject mydomain.com
startapp blog

Ivan Sagalaev

unread,
Sep 20, 2006, 7:52:32 AM9/20/06
to django...@googlegroups.com
gabor wrote:
> so, how do you name your 'main' app in a django-project?

For me it depends on project's type.

If a project is autonomous and serves one purpose then, yes, I call the
main app 'main' and it could even be the only app in the project.

If a project is multi-purpose and just powers a whole site or many parts
of it then there is no concept of main app at all and all apps are named
by their function.

Frankie Robertson

unread,
Sep 20, 2006, 11:27:54 AM9/20/06
to django...@googlegroups.com
I generally call applications that are primarly database backed by the
most important table's name unless another name is immediately more
obvious. So if the site is a webcomic then call the app comics. If it
is a song lyric website call it lyrics. Otherwise there shouldn't be a
particular problem with calling it main or base or whatever. You may
find later that you can refactor it into more applications.
Reply all
Reply to author
Forward
0 new messages