summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index d1ba4478f..0be382866 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -90,8 +90,16 @@ def index(request):
"""
Main page
"""
- dct = {}
+ dct = {'warnings': []}
+ if settings.PROJECT_SLUG == 'default':
+ dct['warnings'].append(_(
+ u"PROJECT_SLUG is set to \"default\" change it in your "
+ u"local_settings (or ask your admin to do it)."))
profile = get_current_profile()
+ if profile.slug == 'default':
+ dct['warnings'].append(_(
+ u"The slug of your current profile is set to \"default\" change it "
+ u"on the administration page (or ask your admin to do it)."))
image = get_random_item_image_link(request)
if hasattr(profile, 'homepage') and profile.homepage:
dct['homepage'] = markdown(profile.homepage)