<
alexander...@gmail.com> 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, Alexander Joseph
>> <
alexander...@gmail.com> 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 instead of
>> > with
>> > django allauth and I'd like to only give them that option, however I do
>> > need
>> > to login with allauth while developing because the settings for logging
>> > in
>> > to Office365 dont work with a development server. So I'd like to display
>> > the
>> > allauth login form and allow the user to login if it is in development
>> > mode,
>> > otherwise I'd only like to display the Office365 login.
>>
>> Just pass in something in the context from the server to the template
>> and test that.
>