Thank you both. It works. 
If I want to keep the response toolbar available to the logged in admin, 
how should I perform the IF test?

On Monday, July 23, 2012 9:57:55 PM UTC+8, Anthony wrote:
>
> request.is_local indicates whether the request is coming from localhost, 
> so that can often be used to distinguish between development and production.
>
> Anthony
>
> On Monday, July 23, 2012 3:53:49 AM UTC-4, lyn2py wrote:
>>
>> I have the code working on Localhost, but along with localhost there are 
>> the response toolbar, the link to the admin site and the database used.
>>
>> What code should I use to "test" if the code is being executed on the 
>> production server, so that I can "hide" or switch to use a different 
>> database?
>>
>> I'm deploying on Amazon EC2, if this is any helpful. Thanks!
>>
>

-- 



Reply via email to