Re: Sane defaults for Startapp and Startproject

2011-10-25 Thread Rich Jones
Having an example project to fork/fiddle with in the documentation is a fair compromise. svn co http://code.djangoproject.com/svn/django/trunk/ django-example ? R On Oct 21, 2:22 pm, Carl Meyer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Rich, > > On 10/21/2011 10:21 AM, Ri

Re: Sane defaults for Startapp and Startproject

2011-10-21 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Rich, On 10/21/2011 10:21 AM, Rich Jones wrote: > How would you guys feel about a manage.py startexample > > which would create an example application? A simple, templated hello > world with an example model and an example view and an example > te

Re: Sane defaults for Startapp and Startproject

2011-10-21 Thread Rich Jones
How would you guys feel about a manage.py startexample which would create an example application? A simple, templated hello world with an example model and an example view and an example template? R On Oct 20, 4:50 pm, Aymeric Augustin wrote: > On 20 oct. 2011, at 22:22, Carl Meyer wrote: > > >

Re: Sane defaults for Startapp and Startproject

2011-10-20 Thread Aymeric Augustin
On 20 oct. 2011, at 22:22, Carl Meyer wrote: >> In order to make deployment easier, I also recommend putting >> site-wide templates and templatetags in an application, and keeping >> TEMPLATE_DIRS empty, but that's a personal preference. > > Just out of curiosity, why would you say it makes deplo

Re: Sane defaults for Startapp and Startproject

2011-10-20 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/19/2011 01:07 PM, Gabriel Hurley wrote: > I think there is sufficient interest in the idea of a "how to organize > your Django project" page in the documentation that it would be worth > beginning work on a patch for one, much in the way that the

Re: Sane defaults for Startapp and Startproject

2011-10-20 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Aymeric, On 10/19/2011 01:07 AM, Aymeric Augustin wrote: > Collecting static files and putting media uploads in the "project > directory" (whatever that means) isn't really a best practice. In > production, the code area should be read-only for the

Re: Sane defaults for Startapp and Startproject

2011-10-19 Thread Gabriel Hurley
I think there is sufficient interest in the idea of a "how to organize your Django project" page in the documentation that it would be worth beginning work on a patch for one, much in the way that the "How to contribute to Django"/"Spirit of contributing" page got started. That means: 1. Ope

Re: Sane defaults for Startapp and Startproject

2011-10-19 Thread Andre Terra
Hi all, On Wed, Oct 19, 2011 at 5:50 AM, Gabriel Hurley wrote: > Thanks for the suggestions, Rich... I'll try not to repeat what others have > said, but have a couple notes to add: > > () > > As for the rest: I don't believe in adding magic in order to save a couple > lines of typing (explic

Re: Sane defaults for Startapp and Startproject

2011-10-19 Thread Gabriel Hurley
Thanks for the suggestions, Rich... I'll try not to repeat what others have said, but have a couple notes to add: should create ./static, ./uploads and ./newproj and ./newproj/ > templates > I could get behind static, and *maybe* even templates, but absolutely not uploads. I would argue again

Re: Sane defaults for Startapp and Startproject

2011-10-19 Thread Aymeric Augustin
On 19 oct. 2011, at 00:21, Rich Jones wrote: > Here's some of what I propose. I'm not suggesting this be a canonical > list of features by any means, I'm just suggesting that django have > more convenient default settings. We should look at the most common > conventions and best practices and shape

Re: Sane defaults for Startapp and Startproject

2011-10-18 Thread stan
Hi Rich, I'am not Django core but I think that most of your propositions are unpythonic/unkiss, unclear and way too specific or magical. I don't want to waste 10 more minutes after a startapp/startproject to think about what directory I have to remove and which files I have to repair because all

Re: Sane defaults for Startapp and Startproject

2011-10-18 Thread h3
I'd like the settings file to be more convenient too, but most of the suggestion are too specific. It's an excellent idea to automate more things, but it's a really bad idea to pretend that we know everybody's needs. Personally here's what I'd like to see in the generated settings.py: import os

Re: Sane defaults for Startapp and Startproject

2011-10-18 Thread Joe & Anne Tennies
On Tue, Oct 18, 2011 at 5:21 PM, Rich Jones wrote: > Hey guys! > > So I've just written a blog post about getting started with Django, > http://gun.io/blog/python-for-the-web/, and many of the things here > just make me think, 'why doesn't it just do that by default?' > > Here's some of what I pr

Re: Sane defaults for Startapp and Startproject

2011-10-18 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Rich, On 10/18/2011 04:21 PM, Rich Jones wrote: > So I've just written a blog post about getting started with Django, > http://gun.io/blog/python-for-the-web/, and many of the things here > just make me think, 'why doesn't it just do that by defaul

Re: Sane defaults for Startapp and Startproject

2011-10-18 Thread Javier Guerra Giraldez
hi, here are my personal thoughts on the proposals: On Tue, Oct 18, 2011 at 5:21 PM, Rich Jones wrote: > django-admin.py startproject newproj > > should create ./static, ./uploads and ./newproj and ./newproj/ > templates -0 ./static might be common, the others are way too specific. > in ./n

Sane defaults for Startapp and Startproject

2011-10-18 Thread Rich Jones
Hey guys! So I've just written a blog post about getting started with Django, http://gun.io/blog/python-for-the-web/, and many of the things here just make me think, 'why doesn't it just do that by default?' Here's some of what I propose. I'm not suggesting this be a canonical list of features by