Project layout

28 views
Skip to first unread message

Rich Shepard

unread,
Apr 14, 2017, 11:33:03 AM4/14/17
to django...@googlegroups.com
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
│   │   ├── bootstrap4
│   │   │   └── 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

Rich Shepard

unread,
Apr 14, 2017, 2:00:38 PM4/14/17
to django...@googlegroups.com
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

Simon McConnell

unread,
Apr 15, 2017, 7:45:22 PM4/15/17
to Django users, rshe...@appl-ecosys.com
I came across this in my reading.  I'm only just starting to learn django so don't know the reason it does it.  As I understand it the first clientmgmtsystem is actually clientmgmtsystem_project.
Reply all
Reply to author
Forward
0 new messages