from django.conf import settings
import warnings
def logo(request):
    try:
        logo_right_url = settings.LOGO_RIGHT_URL
        logo_left_url = settings.LOGO_LEFT_URL
        site_title = settings.SITE_TITLE
    except AttributeError:
        warnings.warn("No LOGO_LEFT_URL and/or LOGO_RIGHT_URL and/or SITE_TITLE specified in settings! rapidsms.context_processors.logo")
        logo_right_url = ""
        logo_left_url = ""

    return {'logo_right_url' : logo_right_url ,
            'logo_left_url' : logo_left_url, 
            'site_title' : site_title }

@@ -207,16 +207,63 @@
 E_TITLE%0A
+        base_template = settings.BASE_TEMPLATE%0A
     exce
@@ -473,16 +473,240 @@
 url = %22%22
+%0A        site_title = %22RapidSMS%22%0A        base_template = %22layout.html%22%0A%0A    try:%0A        base_template_split_2 = settings.BASE_TEMPLATE_SPLIT_2%0A    except AttributeError:%0A        base_template_split_2 = %22layout-split-2.html%22
 %0A%0A    re
@@ -830,11 +830,115 @@
 te_title
+,%0A            'base_template': base_template,%0A            'base_template_split_2': base_template_split_2
  %7D%0A

add base_template to rapidsms context processor