Changeset 677
- Timestamp:
- 09/23/05 17:09:42 (3 years ago)
- Files:
-
- django/trunk/django/views/core/flatfiles.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/views/core/flatfiles.py
r676 r677 4 4 from django.utils.httpwrappers import HttpResponse 5 5 from django.conf.settings import SITE_ID 6 7 DEFAULT_TEMPLATE = 'flatfiles/default' 6 8 7 9 def flat_file(request, url): … … 24 26 from django.views.auth.login import redirect_to_login 25 27 return redirect_to_login(request.path) 26 t = template_loader.select_template([f.template_name, 'flatfiles/default']) 28 if f.template_name: 29 t = template_loader.select_template((f.template_name, DEFAULT_TEMPLATE)) 30 else: 31 t = template_loader.get_template(DEFAULT_TEMPLATE) 27 32 c = DjangoContext(request, { 28 33 'flatfile': f,
