amitkarmakar
amitkarmakar

Reputation: 1243

Good ways to name django projects which contain only one app

When creating projects which contain just a single app, what are the good ways to name the project?

I can think without any confusion how to name my app but I need a project name for it. (Can i create a app without a project? If yes, Is it good to do that ?)

[Update] I saw some projects on github which contain single app are named as django-[appname]. I liked it and will be following it for naming my projects which contain a single app. Django might be overkill for single app projects but as of now i have just started learning django so i have only one app in my projects.

Thanks

Upvotes: 17

Views: 6485

Answers (3)

Alessio
Alessio

Reputation: 423

I'm very new to Django, but in what I've read of the documentation I haven't found any naming conventions for projects as they depend on too many factors. Instead, use general names for projects and more specific names for apps:

project = humanresource
apps = salaries, badge, whatelse... 

Remember that projects come first, and apps can be reused in different projects.

Upvotes: 1

Lie Ryan
Lie Ryan

Reputation: 64845

Usually, for projects that are going to be used by only one installation, I usually name my projects as "who will be using the system" (e.g. the organization's name) and the apps as "major features of the system".

However, if your app is really that simple that you don't expect to be using multiple apps, then django might be too heavyweight and you might actually be better served by using something simpler.

Upvotes: 6

lprsd
lprsd

Reputation: 87095

With django, you need a project - that is what holds the settings, urls modules. And a project needs a minimum of one app.

Most projects consist of a lot of apps. Organization is necessary and this is the preferred method. However, if it is a very simple app, for which you think all of this boilerplate is overkill and like to keep it in a single file, you can do so using some of the other micro frameworks like Flask.

Upvotes: -1

Related Questions