diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-29 11:37:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-29 11:37:22 +0200 |
commit | fd21739351daf697188329948492c65b1a9bd7e6 (patch) | |
tree | 7c0a2cb3713941ae7abb51e7591bd5398ac277ed /ishtar_common/views.py | |
parent | 01d871a2cbf603690d9c558defac0801a7a41205 (diff) | |
parent | d2bdd742b6b95ce29272503e777afae0bd319d37 (diff) | |
download | Ishtar-fd21739351daf697188329948492c65b1a9bd7e6.tar.bz2 Ishtar-fd21739351daf697188329948492c65b1a9bd7e6.zip |
Merge branch 'master' into develop
Conflicts:
version.py
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r-- | ishtar_common/views.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 7a7c99953..be7c7b8e0 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -94,8 +94,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) |