Commit 09d3cb9870a03df5acdcf90e24ed9fd39e3d33b8
Committed by
Sergio Oliveira
1 parent
6056cc27
Exists in
master
and in
39 other branches
Changed way to get BROWSERID_ENABLED attr
It was directly imported, we changed it to use the getattr method. Signed-off-by: Carlos Oliveira <carlospecter@gmail.com> Signed-off-by: Alexandre Almeida <alexandreab@live.com>
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
colab/accounts/urls.py
1 | 1 | ||
2 | +from django.conf import settings | ||
2 | from django.conf.urls import patterns, url | 3 | from django.conf.urls import patterns, url |
3 | 4 | ||
4 | from .views import (UserProfileDetailView, UserProfileUpdateView, LoginView, | 5 | from .views import (UserProfileDetailView, UserProfileUpdateView, LoginView, |
@@ -7,7 +8,8 @@ from .views import (UserProfileDetailView, UserProfileUpdateView, LoginView, | @@ -7,7 +8,8 @@ from .views import (UserProfileDetailView, UserProfileUpdateView, LoginView, | ||
7 | from colab.accounts import views | 8 | from colab.accounts import views |
8 | from django.contrib.auth import views as auth_views | 9 | from django.contrib.auth import views as auth_views |
9 | 10 | ||
10 | -from colab.settings import BROWSERID_ENABLED | 11 | + |
12 | +BROWSERID_ENABLED = getattr(settings, 'BROWSERID_ENABLED', False) | ||
11 | 13 | ||
12 | 14 | ||
13 | if not BROWSERID_ENABLED: | 15 | if not BROWSERID_ENABLED: |