Re: How to get DATABASE_NAME

2009-08-16 Thread Alexander Dutton
On 16/08/09 09:38, Maksymus007 wrote: > On Sun, Aug 16, 2009 at 10:30 AM, adelaide_mike > wrote: >> In my reporting function I need to have: >> >> If DATABASE_NAME = x: >>#do this >> Else: >>#do the other >> >> How can I obtain that name, which is established in settings.py? >> >> Mike >

Re: How to get DATABASE_NAME

2009-08-16 Thread Maksymus007
import myproject.settings; if settings.DATABASE_NAME = x: On Sun, Aug 16, 2009 at 10:30 AM, adelaide_mike wrote: > > In my reporting function I need to have: > > If DATABASE_NAME = x: >    #do this > Else: >    #do the other > > How can I obtain that name, which is established in settings.py? >

How to get DATABASE_NAME

2009-08-16 Thread adelaide_mike
In my reporting function I need to have: If DATABASE_NAME = x: #do this Else: #do the other How can I obtain that name, which is established in settings.py? Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou