On Feb 25, 2010, at 12:08 AM, Carl Meyer wrote:

> So I've got a demo implementation of this in Pinax in my settings-
> proposal branch: 
> http://github.com/carljm/pinax/commit/1ca3865a40fd04388d542dd468486183b7367d64

Thanks so much for working on this Carl!

> 
> So far it's only implemented in basic_project, and I more or less just
> moved the current settings.py to conf/05_pinax.py; I didn't yet do any
> refactoring into multiple files to take advantage of the new system. I
> think that piece would be better done by someone more familiar with
> Pinax.

We can start up a branch on pinax/pinax repo where we can collaborate in a more 
official manner. I can start that based on your branch. I'll do this tomorrow.

> The settings.py file in the project is quite small; most of the real
> functionality is imported from pinax.utils.conf (where I arbitrarily
> placed it; let me know if I should move it elsewhere). There's a bit
> of a locals() dance that has to be done in order to move the actual
> exec-ing into imported code, but get the resulting settings back into
> the settings.py local namespace.

This little bit has left me a bit uneasy. I spent some time thinking about it 
on my back from PyCon and think I have a slightly better solution.

We have a lot of duplication of environment bootstrapping in many of the 
project-level files. manage.py and deployment files. It occurred to me this can 
be cleaned up. I started a new branch for this clean-up [1]. What we can do 
based on this branch is set DJANGO_SETTINGS_MODULE to something like 
pinax.conf.settings where we can run the code to setup project-level settings. 
We likely will need to set an environment variable to store the location of 
conf directory. I find this a decent improvement in terms of setup. Any obvious 
issues or thoughts on this?

[1]: http://github.com/brosner/pinax/compare/master...new_env

Brian Rosner
http://oebfare.com
http://twitter.com/brosner

-- 
You received this message because you are subscribed to the Google Groups 
"Pinax Core Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pinax-core-dev?hl=en.

Reply via email to