Conditions | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
1 | from django.conf import settings |
||
4 | def installed_apps(request): |
||
5 | check_installed = { |
||
6 | # short name: full app name |
||
7 | 'notifications': 'simple_forums.notifications', |
||
8 | } |
||
9 | |||
10 | context = { |
||
11 | 'installed_apps': settings.INSTALLED_APPS, |
||
12 | } |
||
13 | |||
14 | for app, full_name in check_installed.items(): |
||
15 | context['%s_installed' % app] = full_name in settings.INSTALLED_APPS |
||
16 | |||
17 | return context |
||
18 |