Re: Default project layout / directory structure

2011-03-21 Thread Matt Harasymczuk
I suggest this structure: myproject - apps - libs - conf - public - settings.py - urls.py conf: - production.py - test.py - dev.py libs: - all third party modules public: - media - static - admin - django.wsgi each app structure: - admin - backends - commands - context_

Re: Default project layout / directory structure

2011-03-21 Thread sirex
On 20 Kov, 22:10, Markus Gattol wrote: > That does not seem to work with pip and virtual environment, does it? > This one doeshttps://github.com/epicserve/django-environment It does work with zc.buildout. -- You received this message because you are subscribed to the Google Groups "Django deve

Re: Default project layout / directory structure

2011-03-20 Thread Markus Gattol
> My company had same problem with project layout. We solved it by > creating django-starter project. django-starter is already used by 10 > or more projects and it seems, that this solution works. > > https://bitbucket.org/sirex/django-starter/src That does not seem to work with pip and virtual e

Re: Default project layout / directory structure

2011-03-20 Thread Markus Gattol
> My company had same problem with project layout. We solved it by > creating django-starter project. django-starter is already used by 10 > or more projects and it seems, that this solution works. > > https://bitbucket.org/sirex/django-starter/src That does not seem to work with pip and virtual e

Re: Default project layout / directory structure

2011-03-20 Thread sirex
On 11 Kov, 07:14, Simon Litchfield wrote: > Who votes we should come up with a django-blessed 'official' default project > layout / directory structure? My company had same problem with project layout. We solved it by creating django-starter project. django-starter is already us

Re: Default project layout / directory structure

2011-03-19 Thread Markus Gattol
> I think, it's a good idea to add new option to startapp command There is django-extensions which has a create_app command that takes a --template switch. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: Default project layout / directory structure

2011-03-18 Thread David De La Harpe Golden
On 18/03/11 04:59, Alex Kamedov wrote: > On Thu, Mar 17, 2011 at 9:26 PM, Calvin Spealman wrote: > >> -1 On django manipulating PYTHONPATH > > +1 On encouraging people to keep their applications out of their project! >> > I think, it's a good idea to add new option to startapp command for create

Re: Default project layout / directory structure

2011-03-17 Thread Alex Kamedov
would be used by a project, and there were also >> times when I'd have liked to make use of just one in a project that a >> 3rd party had source code access to without giving them access to >> everything. >> >> I wish that I'd learned sooner to always try and bui

Re: Default project layout / directory structure

2011-03-17 Thread Russell Keith-Magee
On Fri, Mar 18, 2011 at 12:05 AM, Carl Meyer wrote: > > > On 03/17/2011 05:36 AM, Tom Evans wrote: >> I strongly disagree here. Django shouldn't be doing magic with my >> PYTHONPATH, if I want stuff in my PYTHONPATH, I'll darn well put it >> there. > > Hear, hear! I'm only a weak +0 on the entire

Re: Default project layout / directory structure

2011-03-17 Thread Calvin Spealman
loosely coupled to other apps so that they could be more > easily reused. Anything that Django can do to make this point more > obvious would be a good thing. > > Cheers. > Tai. > > > On Mar 17, 2:21 pm, Simon Litchfield wrote: > > On Mar 15, 9:46 am, Russell Keith

Re: Default project layout / directory structure

2011-03-17 Thread Carl Meyer
On 03/17/2011 05:36 AM, Tom Evans wrote: > I strongly disagree here. Django shouldn't be doing magic with my > PYTHONPATH, if I want stuff in my PYTHONPATH, I'll darn well put it > there. Hear, hear! I'm only a weak +0 on the entire idea of documenting a "standard" project layout, as I think it'

Re: Default project layout / directory structure

2011-03-17 Thread Tom Evans
On Thu, Mar 17, 2011 at 5:08 AM, Tai Lee wrote: > If we're talking about the lowest common denominator and keeping > things simple, this is what I think we'd have: > > myapp1/ > myapp2/ > myproject/ > -django.wsgi.sample > -manage.py > -management/ > --commands/ > ---myproject_mycommand.py.sample

Re: Default project layout / directory structure

2011-03-16 Thread Tai Lee
t; > On Fri, Mar 11, 2011 at 1:14 PM, Simon Litchfield wrote: > > > Who votes we should come up with a django-blessed 'official' default > > > project layout / directory structure? > > > Sure -- no disagreement that it would be good to have some common >

Re: Default project layout / directory structure

2011-03-16 Thread Simon Litchfield
On Mar 15, 9:46 am, Russell Keith-Magee wrote: > On Fri, Mar 11, 2011 at 1:14 PM, Simon Litchfield wrote: > > Who votes we should come up with a django-blessed 'official' default > > project layout / directory structure? > > Sure -- no disagreement that it wo

Re: Default project layout / directory structure

2011-03-16 Thread br
ways rather than coming up with unique structures because manage.py startproject doesn't quite fit their needs. Ben On Mar 14, 5:46 pm, Russell Keith-Magee wrote: > On Fri, Mar 11, 2011 at 1:14 PM, Simon Litchfield wrote: > > Who votes we should come up with a django-blessed 'offi

Re: Default project layout / directory structure

2011-03-14 Thread Russell Keith-Magee
On Fri, Mar 11, 2011 at 1:14 PM, Simon Litchfield wrote: > Who votes we should come up with a django-blessed 'official' default project > layout / directory structure? Sure -- no disagreement that it would be good to have some common ground with regards to project layout. All w

Re: Default project layout / directory structure

2011-03-14 Thread David Cramer
Check out django-startproject from lincolnloop.com https://github.com/lincolnloop/django-startproject Kill off all the server configs (though some of it might be cool, like Fabric integration), and I think it'd make for a pretty good base to work from if this were to go into core. On Mar 13, 9:1

Re: Default project layout / directory structure

2011-03-13 Thread John Debs
I like the idea too, since I've run into a lot of situations where some more convention here would make a decision much easier to make. However, it isn't clear what exactly should be better defined and I think the first step to a serious proposal would be to figure that out. The only example that

Re: Default project layout / directory structure

2011-03-13 Thread Dmitry Gladkov
oject layout. On Mar 11, 7:14 am, Simon Litchfield wrote: > Who votes we should come up with a django-blessed 'official' default project > layout / directory structure? > > Might sound like a triviality, but sometimes it's the little things. > > 1. Newcomers -- s

Default project layout / directory structure

2011-03-10 Thread Simon Litchfield
Who votes we should come up with a django-blessed 'official' default project layout / directory structure? Might sound like a triviality, but sometimes it's the little things. 1. Newcomers -- startproject throws 9/10 into confusion and results in a messy first few proj