Friday, April 14, 2017

Project layout

As a Django newcomer I'm still confused about project layout naming
conventions. Following the author's layout in '2 Scoops' chapter 3 for a
project I'm building for my own use to manage prospects and clients, I ran
cookiecutter pointing to pydanny's cookiecutter-django. I have several
subdirectory layers with two of them having the same name, and I need
clarification for these.

My directory tree looks like this (plain ASCII text in my MUA, alpine):

clientmgmtsystem_project/
+-- clientmgmtsystem
+-- clientmgmtsystem
|   +-- contrib
|   |   +-- sites
|   |   +-- migrations
|   +-- static
|   |   +-- css
|  |   +-- fonts
|   |   +-- images
|   |   +-- js
|   |   +-- sass
|   +-- templates
|   |   +-- account
|   |   |-- bootstrap
|   |   |   +-- layout
|   |   +-- pages
|   |   +-- users
|   +-- users
|   +-- migrations
|   +-- tests
+-- config
+   +-- settings
+-- docs
+-- requirements
+-- utility

Directly under the top-level directory are the clientmgmtsystem/
subdirectory which contains another subdirectory with the same name. I
assume the topmost one is the Django project name, but what is the second
one? If I want to invoke the application using 'edb' as the application
name, which directory needs to be renamed?

Looking forward to learning,

Rich

No comments:

Post a Comment