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.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e2977d30-9f7c-48d9-981e-abc66800437e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to