Project

General

Profile

« Previous | Next » 

Revision dae66475

Added by Serghei Mihai almost 10 years ago

fix base template loading

View differences:

uauth/context_processors.py
4 4
from django.template.loader import get_template, TemplateDoesNotExist
5 5

  
6 6
def theme_base(request):
7
    base = get_template('uauth/base.html')
8

  
7 9
    if request.session.get('organization'):
8 10
        try:
9 11
            base = get_template('base.html', [os.path.join(settings.ORGANIZATIONS_DIR,
10 12
                                request.session['organization'], 'templates')])
11 13
        except TemplateDoesNotExist:
12
            base = get_template('uauth/base.html')
14
            pass
13 15

  
14 16
    return {'theme_base': base}

Also available in: Unified diff