Commits

Anonymous committed 9c30fbf

Enabling OpenID is done through a Boolean now.

Comments (0)

Files changed (3)

 ENABLE_NOTICES = False
 
 # Registration - OpenID
+# Requires respective middleware and application
+ENABLE_OPENID=False
 ugettext = lambda s: s
 LOGIN_URL = '/%s%s' % ('account/', 'signin/')
 

settings_local.py

 INSTALLED_APPS += ['django_evolution',]
 
 #Disable use of authopenid app and fall back to simple auth:
+#ENABLE_OPENID=False
 #INSTALLED_APPS.remove('django_authopenid')
 #INSTALLED_APPS += ['simpleauth']
 
 )
 
 # Choose auth app depending on whether authopenid was enabled or not
-if 'django_authopenid' in settings.INSTALLED_APPS:
+if settings.ENABLE_OPENID:
     urlpatterns += patterns('',
         url(r'^account/', include('django_authopenid.urls')),)
 else: