Projet

Général

Profil

« Précédent | Suivant » 

Révision dae66475

Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 9 ans

fix base template loading

Voir les différences:

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}

Formats disponibles : Unified diff