Re: Starting new project -- version 1.10

2016-08-23 Thread Rich Shepard
On Tue, 23 Aug 2016, Michal Petrucha wrote: This is mostly an issue with how we name things. You have a project, which is a CRM application. That's the entire thing, which consists of a bunch of different Python packages. So, each of the subdirectories in the top-level “clientmanagement” directo

Re: Starting new project -- version 1.10

2016-08-23 Thread Rich Shepard
On Tue, 23 Aug 2016, Carsten Fuchs wrote: I cannot remember where is was stated, but iirc another reason for the “project-under-the-project” subdirectory was that it is considered not as app, but rather as “site”. Carsten, Thanks for the clarification. That helps. Rich

Re: Starting new project -- version 1.10

2016-08-23 Thread Carsten Fuchs
Am 23.08.2016 um 14:11 schrieb Michal Petrucha: Finally, you need one Python package that serves as the “app” that glues all the other packages together. This is the package (or app) that contains the settings module, the root URL configuration, the WSGI entry point, and often also static files,

Re: Starting new project -- version 1.10

2016-08-23 Thread Michal Petrucha
On Mon, Aug 22, 2016 at 07:48:44AM -0700, Rich Shepard wrote: > One clarification on projects vs applications will help my learning. > Rather than using the same name for both (based on prior advice), the > project name is clientmanagment and that directory contains > clientmanagement/ crm

Re: Starting new project -- version 1.10

2016-08-22 Thread Rich Shepard
On Mon, 22 Aug 2016, Michal Petrucha wrote: Just to add to what Tim wrote, there's no reason why you couldn't use the crm package created by startproject as an “app”, too – all you have to do is create a models.py file in there (next to the existing urls.py, if you need any models), views.py (if

Re: Starting new project -- version 1.10

2016-08-22 Thread Michal Petrucha
On Fri, Aug 19, 2016 at 02:05:18PM -0700, Rich Shepard wrote: > On Fri, 19 Aug 2016, Tim Graham wrote: > > >Don't use the same name for your app and project. When you "startproject > >crm", the project settings.py, urls.py, and wsgi.py are placed in a module > >named "crm" so you can't use the sam

Re: Starting new project -- version 1.10

2016-08-19 Thread Rich Shepard
On Fri, 19 Aug 2016, Tim Graham wrote: Don't use the same name for your app and project. When you "startproject crm", the project settings.py, urls.py, and wsgi.py are placed in a module named "crm" so you can't use the same name for an app. Tim, I read that but overlooked the implications.

Re: Starting new project -- version 1.10

2016-08-19 Thread Tim Graham
Don't use the same name for your app and project. When you "startproject crm", the project settings.py, urls.py, and wsgi.py are placed in a module named "crm" so you can't use the same name for an app. On Friday, August 19, 2016 at 2:54:56 PM UTC-4, Rich Shepard wrote: > > I'm working my way