diff --git a/brainstorm/urls.py b/brainstorm/urls.py index b62dada..7253790 100644 --- a/brainstorm/urls.py +++ b/brainstorm/urls.py @@ -1,9 +1,10 @@ from django.conf.urls.defaults import * +from django.conf import settings from django.contrib.contenttypes.models import ContentType from brainstorm.models import Idea from brainstorm.feeds import SubsiteFeed -BRAINSTORM_USE_SECRETBALLOT = False +BRAINSTORM_USE_SECRETBALLOT = getattr(settings, 'BRAINSTORM_USE_SECRETBALLOT', False) feeds = { 'latest': SubsiteFeed, diff --git a/brainstorm/views.py b/brainstorm/views.py index 074e0db..b12ca88 100644 --- a/brainstorm/views.py +++ b/brainstorm/views.py @@ -9,7 +9,7 @@ from django.views.generic import list_detail from django.views.decorators.http import require_POST from django.contrib.auth.decorators import login_required from django.conf import settings -from anthill.ideas.models import Subsite, Idea, Vote +from brainstorm.models import Subsite, Idea, Vote def idea_list(request, slug, ordering='-total_upvotes'): ordering_db = {'most_popular': '-score',