summaryrefslogtreecommitdiff
path: root/chimere/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/actions.py')
-rw-r--r--chimere/actions.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/chimere/actions.py b/chimere/actions.py
index 6f82028..ee57b28 100644
--- a/chimere/actions.py
+++ b/chimere/actions.py
@@ -20,10 +20,9 @@
"""
Actions available in the main interface
"""
-from django.utils.translation import ugettext_lazy as _
+from django.conf import settings
from django.contrib.auth import models
-
-from chimere.settings import EXTRA_URL, EMAIL_HOST, INSTALLED_APPS
+from django.utils.translation import ugettext_lazy as _
class Action:
def __init__(self, id, path, label):
@@ -35,9 +34,9 @@ actions = [(Action('view', '', _('View')), []),
Action('edit_route', 'edit_route', _('Add a new route'))),
),]
-if 'chimere.rss' in INSTALLED_APPS:
+if 'chimere_rss' in settings.INSTALLED_APPS:
actions.append((Action('rss', 'rss', _('RSS feeds')), []))
-if EMAIL_HOST:
+if settings.EMAIL_HOST:
actions.append((Action('contact', 'contact', _('Contact us')), []),)