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
>
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?
>
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
3 matches
Mail list logo