[Admin] don't select related objects in podcasts admin
[mygpo.git] / mygpo / web / google.py
blob12ae507ea9c6c6cd8bf525eca77b4adb54b37efa
2 # This file is part of my.gpodder.org.
4 # my.gpodder.org is free software: you can redistribute it and/or modify it
5 # under the terms of the GNU Affero General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or (at your
7 # option) any later version.
9 # my.gpodder.org is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
12 # License for more details.
14 # You should have received a copy of the GNU Affero General Public License
15 # along with my.gpodder.org. If not, see <http://www.gnu.org/licenses/>.
18 from django.conf import settings
21 def analytics(request):
22 pid = settings.GOOGLE_ANALYTICS_PROPERTY_ID
23 if pid:
24 return {'google_analytics_property_id': pid}
25 else:
26 return {}
29 def adsense(request):
30 adclient = settings.ADSENSE_CLIENT
31 if not adclient:
32 return {}
34 slot_bottom = settings.ADSENSE_SLOT_BOTTOM
35 if not slot_bottom:
36 return {}
38 return {
39 'adsense_client': adclient,
40 'adsense_slot_bottom': slot_bottom,