Browse files

Merge branch 'master' of github.com:lincolnloop/django-geotagging-new

  • Loading branch information...
2 parents c932ea4 + 46493da commit 06c560792d4f2867c5f0e8c818fdbfe710d683cf @mlouro mlouro committed Jan 17, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 geotagging/context_processors.py
View
6 geotagging/context_processors.py
@@ -1,10 +1,16 @@
"""
Template Context Processors
"""
+from django.conf import settings
+
def map_counter_reset(request):
"""
This context processor resets the counter
"""
request.session['geotagging_map_counter'] = 0
return {}
+
+
+def google_key(request):
+ return {'GOOGLE_API_KEY':getattr(settings, 'GOOGLE_API_KEY', None)}

0 comments on commit 06c5607

Please sign in to comment.