Re: Why recommend to include project name in settings?

2012-02-10 Thread Adam "Cezar" Jenkins
You're right. Something similar "from .something import SomeThing". Like, https://github.com/django-nonrel/djangotoolbox/blob/develop/djangotoolbox/tests.py#L1 On Fri, Feb 10, 2012 at 9:52 AM, Alex Gaynor wrote: > > > On Fri, Feb 10, 2012 at 10:57 AM, Carl Meyer

Why recommend to include project name in settings?

2012-02-10 Thread Luke Granger-Brown
On Feb 10, 2012 3:47 PM, "Adam "Cezar" Jenkins" wrote: > > On Fri, Feb 10, 2012 at 9:50 AM, Carl Meyer wrote: >> >> "import .module" > > > Not arguing one way or another, but the above has always worked for me from a Python standpoint. It shouldn't work

Re: Why recommend to include project name in settings?

2012-02-10 Thread Alex Gaynor
On Fri, Feb 10, 2012 at 10:57 AM, Carl Meyer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 02/10/2012 08:47 AM, Adam "Cezar" Jenkins wrote: > > On Fri, Feb 10, 2012 at 9:50 AM, Carl Meyer > > wrote: > > > >

Re: Why recommend to include project name in settings?

2012-02-10 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/10/2012 08:47 AM, Adam "Cezar" Jenkins wrote: > On Fri, Feb 10, 2012 at 9:50 AM, Carl Meyer > wrote: > > "import .module" > > > Not arguing one way or another, but the above has always worked

Re: Why recommend to include project name in settings?

2012-02-10 Thread Adam "Cezar" Jenkins
On Fri, Feb 10, 2012 at 9:50 AM, Carl Meyer wrote: > "import .module" Not arguing one way or another, but the above has always worked for me from a Python standpoint. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: Why recommend to include project name in settings?

2012-02-10 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/10/2012 08:25 AM, Chris Wilson wrote: > On Fri, 10 Feb 2012, Carl Meyer wrote: >>> Is there any reason not to drop the project name part of >>> DJANGO_SETTINGS_MODULE and ROOT_URLCONF, to reduce the risk of >>> confusion, pollution, double

Re: Why recommend to include project name in settings?

2012-02-10 Thread Chris Wilson
Hi Carl, On Fri, 10 Feb 2012, Carl Meyer wrote: Is there any reason not to drop the project name part of DJANGO_SETTINGS_MODULE and ROOT_URLCONF, to reduce the risk of confusion, pollution, double imports and bad practice app coding in Django? If you follow that quoted thread to the end,

Re: Why recommend to include project name in settings?

2012-02-10 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Chris, On 02/10/2012 05:36 AM, Chris Wilson wrote: >> But "mysite" is a package, and Django wants us to be able to import >> "mysite.settings" and "mysite.urls" (in fact, the latter is the >> default ROOT_URLCONF setting). In order to make that

Why recommend to include project name in settings?

2012-02-10 Thread Chris Wilson
Hi all, I'd like to inquire about the design decision to recommend users to include the project name in DJANGO_SETTINGS_MODULE and ROOT_URLCONF, for example: When using django-admin.py, you can either set the environment variable once, or explicitly pass in the settings module each time you