Re: if statement for development/production mode in templates?

2018-04-23 Thread Alexander Joseph
I found the answer here. https://stackoverflow.com/questions/1271631/how-to-check-the-template-debug-flag-in-a-django-template Thanks On Monday, April 23, 2018 at 8:04:02 AM UTC-6, larry@gmail.com wrote: > > Somewhere in the code is a place where data is passed to the template. > Did you wri

Re: if statement for development/production mode in templates?

2018-04-23 Thread Larry Martell
Somewhere in the code is a place where data is passed to the template. Did you write the app? On Mon, Apr 23, 2018 at 9:55 AM, Alexander Joseph wrote: > I dont know what that means > > On Monday, April 23, 2018 at 7:49:25 AM UTC-6, larry@gmail.com wrote: >> >> On Mon, Apr 23, 2018 at 9:34 AM,

Re: if statement for development/production mode in templates?

2018-04-23 Thread Julio Biason
Subject: Re: if statement for development/production mode in templates? I dont know what that means On Monday, April 23, 2018 at 7:49:25 AM UTC-6, larry@gmail.com wrote: On Mon, Apr 23, 2018 at 9:34 AM, Alexander Joseph wrote: > Hello, is there a way to make an if statement that is based

Re: if statement for development/production mode in templates?

2018-04-23 Thread Alexander Joseph
I dont know what that means On Monday, April 23, 2018 at 7:49:25 AM UTC-6, larry@gmail.com wrote: > > On Mon, Apr 23, 2018 at 9:34 AM, Alexander Joseph > > wrote: > > Hello, is there a way to make an if statement that is based on whether > you > > are running in development mode or product

Re: if statement for development/production mode in templates?

2018-04-23 Thread Larry Martell
On Mon, Apr 23, 2018 at 9:34 AM, Alexander Joseph wrote: > Hello, is there a way to make an if statement that is based on whether you > are running in development mode or production mode? Or based on which > settings file you are using? > > My app allows users to login with their office365 account

if statement for development/production mode in templates?

2018-04-23 Thread Alexander Joseph
Hello, is there a way to make an if statement that is based on whether you are running in development mode or production mode? Or based on which settings file you are using? My app allows users to login with their office365 account instead of with django allauth and I'd like to only give them t

Re: development/production mode

2006-07-07 Thread Kenneth Gonsalves
On 08-Jul-06, at 7:50 AM, Iain Duncan wrote: > > >>> Do most shared hosting providers allow one to do that? I would have >>> thought not >> >> >> not - unless you are on vps hosting with root access, mod_python is >> not an option unless your provider is kind enough to restart apache >> reg

Re: development/production mode

2006-07-07 Thread Iain Duncan
>>Do most shared hosting providers allow one to do that? I would have >>thought not > > > not - unless you are on vps hosting with root access, mod_python is > not an option unless your provider is kind enough to restart apache > regularly with a cron job - even that may not be enough

Re: development/production mode

2006-07-07 Thread Kenneth Gonsalves
On 08-Jul-06, at 6:00 AM, Iain Duncan wrote: > Do most shared hosting providers allow one to do that? I would have > thought not not - unless you are on vps hosting with root access, mod_python is not an option unless your provider is kind enough to restart apache regularly with a cron

Re: development/production mode

2006-07-07 Thread Kenneth Gonsalves
On 08-Jul-06, at 1:37 AM, Iain Duncan wrote: > > This is my first time using mod_python in production, how do you > handle > the need to restart apache? when you need to restart apache, you restart it -- regards kg http://lawgon.livejournal.com http://avsap.org.in --~--~-~--~---

Re: development/production mode

2006-07-07 Thread Iain Duncan
Wade Leftwich wrote: > Iain Duncan wrote: > how do you handle changes on a site which is already online (talking about changing models and/or views)? >>> >>> >>>I typically maintain a duplicate setup on a testing machine (in my >>>case, a laptop running Linux) and use that for developme

Re: development/production mode

2006-07-07 Thread Wade Leftwich
Iain Duncan wrote: > >>how do you handle changes on a site which is already online (talking > >>about changing models and/or views)? > > > > > > I typically maintain a duplicate setup on a testing machine (in my > > case, a laptop running Linux) and use that for development and > > testing, then w

Re: development/production mode

2006-07-07 Thread Iain Duncan
>>how do you handle changes on a site which is already online (talking >>about changing models and/or views)? > > > I typically maintain a duplicate setup on a testing machine (in my > case, a laptop running Linux) and use that for development and > testing, then when I know I've got the bugs w

Re: development/production mode

2006-07-07 Thread James Bennett
On 7/7/06, patrickk <[EMAIL PROTECTED]> wrote: > how do you handle changes on a site which is already online (talking > about changing models and/or views)? I typically maintain a duplicate setup on a testing machine (in my case, a laptop running Linux) and use that for development and testing, t

development/production mode

2006-07-07 Thread patrickk
how do you handle changes on a site which is already online (talking about changing models and/or views)? do you have two different installations (development/production) or do you use the development server. thanks, patrick --~--~-~--~~~---~--~~ You received