adict = {
'DATABASE_PASSWORD' : "something"
}
in settings.py :
locs = vars()
for key,value in adict:
locs[key] = value
I'm dynamically assigning variables in settings
this works in the development server (a wsgi), but NOT on the production
server using mod_wsgi
is there a known differenc
nevermind
moral: if it seems illogical it probably is something else
On Wed, Feb 4, 2009 at 12:38 AM, felix wrote:
>
> adict = {
> 'DATABASE_PASSWORD' : "something"
> }
>
> in settings.py :
>
> locs = vars()
> for key,value in adict:
> locs[key] = value
>
> I'm dynamically assigning vari
2 matches
Mail list logo