Changeset 2700
- Timestamp:
- 04/15/06 11:46:54 (3 years ago)
- Files:
-
- django/branches/magic-removal/django/conf/global_settings.py (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/404.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/500.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/base_site.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/change_form.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/change_list.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/delete_confirmation.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/bookmarklets.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/index.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/missing_docutils.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/model_detail.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/model_index.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/template_detail.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/template_filter_index.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/template_tag_index.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/view_detail.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin_doc/view_index.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/index.html (modified) (2 diffs)
- django/branches/magic-removal/django/contrib/admin/templates/admin/login.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/object_history.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/admin/template_validator.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/registration/logged_out.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/registration/password_change_done.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/registration/password_change_form.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/registration/password_reset_done.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/registration/password_reset_form.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/widget/many_to_many.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templates/widget/one_to_one.html (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/templatetags/admin_list.py (modified) (4 diffs)
- django/branches/magic-removal/django/contrib/admin/templatetags/admin_modify.py (modified) (6 diffs)
- django/branches/magic-removal/django/contrib/admin/views/decorators.py (modified) (1 diff)
- django/branches/magic-removal/django/contrib/admin/views/doc.py (modified) (14 diffs)
- django/branches/magic-removal/django/contrib/admin/views/main.py (modified) (4 diffs)
- django/branches/magic-removal/django/contrib/admin/views/template.py (modified) (1 diff)
- django/branches/magic-removal/django/contrib/auth/forms.py (modified) (1 diff)
- django/branches/magic-removal/django/contrib/auth/views.py (modified) (4 diffs)
- django/branches/magic-removal/django/contrib/comments/views/comments.py (modified) (3 diffs)
- django/branches/magic-removal/django/contrib/comments/views/karma.py (modified) (1 diff)
- django/branches/magic-removal/django/contrib/comments/views/userflags.py (modified) (4 diffs)
- django/branches/magic-removal/django/contrib/flatpages/views.py (modified) (2 diffs)
- django/branches/magic-removal/django/contrib/syndication/feeds.py (modified) (1 diff)
- django/branches/magic-removal/django/template/loaders/app_directories.py (modified) (1 diff)
- django/branches/magic-removal/django/template/loaders/eggs.py (modified) (1 diff)
- django/branches/magic-removal/django/template/loaders/filesystem.py (modified) (1 diff)
- django/branches/magic-removal/docs/authentication.txt (modified) (3 diffs)
- django/branches/magic-removal/docs/settings.txt (modified) (1 diff)
- django/branches/magic-removal/docs/syndication_feeds.txt (modified) (1 diff)
- django/branches/magic-removal/docs/templates_python.txt (modified) (6 diffs)
- django/branches/magic-removal/docs/templates.txt (modified) (2 diffs)
- django/branches/magic-removal/docs/tutorial03.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/django/conf/global_settings.py
r2666 r2700 103 103 TEMPLATE_DIRS = () 104 104 105 # Extension on all templates.106 TEMPLATE_FILE_EXTENSION = '.html'107 108 105 # List of callables that know how to import templates from various sources. 109 106 # See the comments in django/core/template/loader.py for interface django/branches/magic-removal/django/contrib/admin/templates/admin/404.html
r1068 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/admin/500.html
r1068 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/admin/base_site.html
r2121 r2700 1 {% extends "admin/base " %}1 {% extends "admin/base.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/admin/change_form.html
r2625 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n admin_modify adminmedia %} 3 3 {% block extrahead %}{{ block.super }} django/branches/magic-removal/django/contrib/admin/templates/admin/change_list.html
r2625 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load adminmedia admin_list i18n %} 3 3 {% block stylesheet %}{% admin_media_prefix %}css/changelists.css{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin/delete_confirmation.html
r2662 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block userlinks %}<a href="../../../../doc/">{% trans 'Documentation' %}</a> / <a href="../../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../../logout/">{% trans 'Log out' %}</a>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/bookmarklets.html
r2388 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 3 3 {% block breadcrumbs %}{% load i18n %}<div class="breadcrumbs"><a href="../../">{% trans "Home" %}</a> › <a href="../">{% trans "Documentation" %}</a> › {% trans "Bookmarklets" %}</div>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/index.html
r1521 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">Home</a> › Documentation</div>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/missing_docutils.html
r1521 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">Home</a> › Documentation</div>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/model_detail.html
r2421 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block userlinks %}<a href="../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../logout/">{% trans 'Log out' %}</a>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/model_index.html
r2099 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block coltype %}colSM{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/template_detail.html
r1521 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › Templates › {{ name }}</div>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/template_filter_index.html
r1521 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block coltype %}colSM{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/template_tag_index.html
r1521 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block coltype %}colSM{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/view_detail.html
r1521 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › <a href="../">Views</a> › {{ name }}</div>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin_doc/view_index.html
r1521 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block coltype %}colSM{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin/index.html
r2630 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 … … 15 15 {% for app in app_list %} 16 16 <div class="module"> 17 <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}"> 17 <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}"> 18 18 <caption>{{ app.name }}</caption> 19 19 {% for model in app.models %} django/branches/magic-removal/django/contrib/admin/templates/admin/login.html
r2627 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/admin/object_history.html
r2657 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block userlinks %}<a href="../../../../doc/">{% trans 'Documentation' %}</a> / <a href="../../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../../logout/">{% trans 'Log out' %}</a>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/admin/template_validator.html
r948 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 3 3 {% block content %} django/branches/magic-removal/django/contrib/admin/templates/registration/logged_out.html
r1068 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/registration/password_change_done.html
r1068 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/registration/password_change_form.html
r2137 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 {% block userlinks %}<a href="../doc/">{% trans 'Documentation' %}</a> / {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %} django/branches/magic-removal/django/contrib/admin/templates/registration/password_reset_done.html
r1068 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/registration/password_reset_form.html
r1432 r2700 1 {% extends "admin/base_site " %}1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 3 django/branches/magic-removal/django/contrib/admin/templates/widget/many_to_many.html
r1434 r2700 1 {% include "widget/foreign " %}1 {% include "widget/foreign.html" %} django/branches/magic-removal/django/contrib/admin/templates/widget/one_to_one.html
r1904 r2700 1 {% include "widget/foreign " %}1 {% include "widget/foreign.html" %} django/branches/magic-removal/django/contrib/admin/templatetags/admin_list.py
r2688 r2700 66 66 '1': 1, 67 67 } 68 pagination = register.inclusion_tag('admin/pagination ')(pagination)68 pagination = register.inclusion_tag('admin/pagination.html')(pagination) 69 69 70 70 def result_headers(cl): … … 186 186 'result_headers': list(result_headers(cl)), 187 187 'results': list(results(cl))} 188 result_list = register.inclusion_tag("admin/change_list_results ")(result_list)188 result_list = register.inclusion_tag("admin/change_list_results.html")(result_list) 189 189 190 190 def date_hierarchy(cl): … … 246 246 } for year in years] 247 247 } 248 date_hierarchy = register.inclusion_tag('admin/date_hierarchy ')(date_hierarchy)248 date_hierarchy = register.inclusion_tag('admin/date_hierarchy.html')(date_hierarchy) 249 249 250 250 def search_form(cl): … … 254 254 'search_var': SEARCH_VAR 255 255 } 256 search_form = register.inclusion_tag('admin/search_form ')(search_form)256 search_form = register.inclusion_tag('admin/search_form.html')(search_form) 257 257 258 258 def filter(cl, spec): 259 259 return {'title': spec.title(), 'choices' : list(spec.choices(cl))} 260 filter = register.inclusion_tag('admin/filter ')(filter)260 filter = register.inclusion_tag('admin/filter.html')(filter) 261 261 262 262 def filters(cl): 263 263 return {'cl': cl} 264 filters = register.inclusion_tag('admin/filters ')(filters)264 filters = register.inclusion_tag('admin/filters.html')(filters) django/branches/magic-removal/django/contrib/admin/templatetags/admin_modify.py
r2651 r2700 36 36 'show_save': True 37 37 } 38 submit_row = register.inclusion_tag('admin/submit_line ', takes_context=True)(submit_row)38 submit_row = register.inclusion_tag('admin/submit_line.html', takes_context=True)(submit_row) 39 39 40 40 def field_label(bound_field): … … 65 65 try: 66 66 field_class_name = klass.__name__ 67 template_name = "widget/%s " % class_name_to_underscored(field_class_name)67 template_name = "widget/%s.html" % class_name_to_underscored(field_class_name) 68 68 nodelist = loader.get_template(template_name).nodelist 69 69 except template.TemplateDoesNotExist: … … 73 73 else: 74 74 if not cls.default: 75 cls.default = loader.get_template("widget/default ").nodelist75 cls.default = loader.get_template("widget/default.html").nodelist 76 76 nodelist = cls.default 77 77 … … 127 127 128 128 def template_name(self): 129 return "admin/edit_inline_tabular "129 return "admin/edit_inline_tabular.html" 130 130 131 131 class StackedBoundRelatedObject(BoundRelatedObject): … … 139 139 140 140 def template_name(self): 141 return "admin/edit_inline_stacked "141 return "admin/edit_inline_stacked.html" 142 142 143 143 class EditInlineNode(template.Node): … … 230 230 'class_names': " ".join(class_names), 231 231 } 232 admin_field_line = register.inclusion_tag('admin/field_line ', takes_context=True)(admin_field_line)232 admin_field_line = register.inclusion_tag('admin/field_line.html', takes_context=True)(admin_field_line) django/branches/magic-removal/django/contrib/admin/views/decorators.py
r2211 r2700 20 20 else: 21 21 post_data = _encode_post_data({}) 22 return render_to_response('admin/login ', {22 return render_to_response('admin/login.html', { 23 23 'title': _('Log in'), 24 24 'app_path': request.path, django/branches/magic-removal/django/contrib/admin/views/doc.py
r2601 r2700 18 18 if not utils.docutils_is_available: 19 19 return missing_docutils_page(request) 20 return render_to_response('admin_doc/index ', context_instance=RequestContext(request))20 return render_to_response('admin_doc/index.html', context_instance=RequestContext(request)) 21 21 doc_index = staff_member_required(doc_index) 22 22 … … 24 24 # Hack! This couples this view to the URL it lives at. 25 25 admin_root = request.path[:-len('doc/bookmarklets/')] 26 return render_to_response('admin_doc/bookmarklets ', {26 return render_to_response('admin_doc/bookmarklets.html', { 27 27 'admin_url': "%s://%s%s" % (os.environ.get('HTTPS') == 'on' and 'https' or 'http', get_host(request), admin_root), 28 28 }, context_instance=RequestContext(request)) … … 57 57 }) 58 58 59 return render_to_response('admin_doc/template_tag_index ', {'tags': tags}, context_instance=RequestContext(request))59 return render_to_response('admin_doc/template_tag_index.html', {'tags': tags}, context_instance=RequestContext(request)) 60 60 template_tag_index = staff_member_required(template_tag_index) 61 61 … … 87 87 'library': tag_library, 88 88 }) 89 return render_to_response('admin_doc/template_filter_index ', {'filters': filters}, context_instance=RequestContext(request))89 return render_to_response('admin_doc/template_filter_index.html', {'filters': filters}, context_instance=RequestContext(request)) 90 90 template_filter_index = staff_member_required(template_filter_index) 91 91 … … 98 98 else: 99 99 settings_modules = [settings] 100 101 views = [] 100 101 views = [] 102 102 for settings_mod in settings_modules: 103 103 urlconf = __import__(settings_mod.ROOT_URLCONF, '', '', ['']) … … 111 111 'url': simplify_regex(regex), 112 112 }) 113 return render_to_response('admin_doc/view_index ', {'views': views}, context_instance=RequestContext(request))113 return render_to_response('admin_doc/view_index.html', {'views': views}, context_instance=RequestContext(request)) 114 114 view_index = staff_member_required(view_index) 115 115 … … 130 130 for key in metadata: 131 131 metadata[key] = utils.parse_rst(metadata[key], 'model', 'view:' + view) 132 return render_to_response('admin_doc/view_detail ', {132 return render_to_response('admin_doc/view_detail.html', { 133 133 'name': view, 134 134 'summary': title, … … 143 143 144 144 m_list = [m._meta for m in models.get_models()] 145 return render_to_response('admin_doc/model_index ', {'models': m_list}, context_instance=RequestContext(request))145 return render_to_response('admin_doc/model_index.html', {'models': m_list}, context_instance=RequestContext(request)) 146 146 model_index = staff_member_required(model_index) 147 147 … … 168 168 fields = [] 169 169 for field in opts.fields: 170 # ForeignKey is a special case since the field will actually be a 171 # descriptor that returns the other object 170 # ForeignKey is a special case since the field will actually be a 171 # descriptor that returns the other object 172 172 if isinstance(field, models.ForeignKey): 173 173 data_type = related_object_name = field.rel.to.__name__ 174 174 app_label = field.rel.to._meta.app_label 175 verbose = utils.parse_rst(("the related `%s.%s` object" % (app_label, data_type)), 'model', 'model:' + data_type) 175 verbose = utils.parse_rst(("the related `%s.%s` object" % (app_label, data_type)), 'model', 'model:' + data_type) 176 176 else: 177 177 data_type = get_readable_field_data_type(field) … … 201 201 'verbose': verbose, 202 202 }) 203 203 204 204 # Gather related objects 205 205 for rel in opts.get_all_related_objects(): … … 215 215 }) 216 216 217 return render_to_response('admin_doc/model_detail ', {217 return render_to_response('admin_doc/model_detail.html', { 218 218 'name': '%s.%s' % (opts.app_label, opts.object_name), 219 219 'summary': "Fields on %s objects" % opts.object_name, … … 237 237 'order': list(settings_mod.TEMPLATE_DIRS).index(dir), 238 238 }) 239 return render_to_response('admin_doc/template_detail ', {239 return render_to_response('admin_doc/template_detail.html', { 240 240 'name': template, 241 241 'templates': templates, … … 249 249 def missing_docutils_page(request): 250 250 """Display an error message for people without docutils""" 251 return render_to_response('admin_doc/missing_docutils ')251 return render_to_response('admin_doc/missing_docutils.html') 252 252 253 253 def load_all_installed_template_libraries(): … … 336 336 # handle named groups first 337 337 pattern = named_group_matcher.sub(lambda m: m.group(1), pattern) 338 338 339 339 # handle non-named groups 340 340 pattern = non_named_group_matcher.sub("<var>", pattern) 341 342 # clean up any outstanding regex-y characters. 341 342 # clean up any outstanding regex-y characters. 343 343 pattern = pattern.replace('^', '').replace('$', '').replace('?', '').replace('//', '/').replace('\\', '') 344 344 if not pattern.startswith('/'): django/branches/magic-removal/django/contrib/admin/views/main.py
r2662 r2700 219 219 context.update(extra_context) 220 220 return render_to_response([ 221 "admin/%s/%s/change_form " % (app_label, opts.object_name.lower()),222 "admin/%s/change_form " % app_label,223 "admin/change_form "], context_instance=context)221 "admin/%s/%s/change_form.html" % (app_label, opts.object_name.lower()), 222 "admin/%s/change_form.html" % app_label, 223 "admin/change_form.html"], context_instance=context) 224 224 225 225 def index(request): 226 return render_to_response('admin/index ', {'title': _('Site administration')}, context_instance=template.RequestContext(request))226 return render_to_response('admin/index.html', {'title': _('Site administration')}, context_instance=template.RequestContext(request)) 227 227 index = staff_member_required(never_cache(index)) 228 228 … … 516 516 "opts": model._meta, 517 517 } 518 return render_to_response(["admin/%s/%s/delete_confirmation " % (app_label, opts.object_name.lower() ),519 "admin/%s/delete_confirmation " % app_label ,520 "admin/delete_confirmation "], extra_context, context_instance=template.RequestContext(request))518 return render_to_response(["admin/%s/%s/delete_confirmation.html" % (app_label, opts.object_name.lower() ), 519 "admin/%s/delete_confirmation.html" % app_label , 520 "admin/delete_confirmation.html"], extra_context, context_instance=template.RequestContext(request)) 521 521 delete_stage = staff_member_required(never_cache(delete_stage)) 522 522 … … 536 536 'object': obj, 537 537 } 538 return render_to_response(["admin/%s/%s/object_history " % (app_label, model._meta.object_name.lower()),539 "admin/%s/object_history " % app_label ,540 "admin/object_history "], extra_context, context_instance=template.RequestContext(request))538 return render_to_response(["admin/%s/%s/object_history.html" % (app_label, model._meta.object_name.lower()), 539 "admin/%s/object_history.html" % app_label , 540 "admin/object_history.html"], extra_context, context_instance=template.RequestContext(request)) 541 541 history = staff_member_required(never_cache(history)) 542 542 … … 735 735 }) 736 736 c.update({'has_add_permission': c['perms'][app_label][cl.opts.get_add_permission()]}), 737 return render_to_response(['admin/%s/%s/change_list ' % (app_label, cl.opts.object_name.lower()),738 'admin/%s/change_list ' % app_label,739 'admin/change_list '], context_instance=c)737 return render_to_response(['admin/%s/%s/change_list.html' % (app_label, cl.opts.object_name.lower()), 738 'admin/%s/change_list.html' % app_label, 739 'admin/change_list.html'], context_instance=c) 740 740 change_list = staff_member_required(never_cache(change_list)) django/branches/magic-removal/django/contrib/admin/views/template.py
r2050 r2700 24 24 if not errors: 25 25 request.user.add_message('The template is valid.') 26 return render_to_response('admin/template_validator ', {26 return render_to_response('admin/template_validator.html', { 27 27 'title': 'Template validator', 28 28 'form': forms.FormWrapper(manipulator, new_data, errors), django/branches/magic-removal/django/contrib/auth/forms.py
r2498 r2700 76 76 else: 77 77 site_name = domain = domain_override 78 t = loader.get_template('registration/password_reset_email ')78 t = loader.get_template('registration/password_reset_email.html') 79 79 c = { 80 80 'new_password': new_pass, django/branches/magic-removal/django/contrib/auth/views.py
r2659 r2700 26 26 errors = {} 27 27 request.session.set_test_cookie() 28 return render_to_response('registration/login ', {28 return render_to_response('registration/login.html', { 29 29 'form': forms.FormWrapper(manipulator, request.POST, errors), 30 30 REDIRECT_FIELD_NAME: redirect_to, … … 37 37 del request.session[SESSION_KEY] 38 38 except KeyError: 39 return render_to_response('registration/logged_out ', {'title': 'Logged out'}, context_instance=RequestContext(request))39 return render_to_response('registration/logged_out.html', {'title': 'Logged out'}, context_instance=RequestContext(request)) 40 40 else: 41 41 # Redirect to this page until the session has been cleared. … … 62 62 form.save() 63 63 return HttpResponseRedirect('%sdone/' % request.path) 64 return render_to_response('registration/password_reset_form ', {'form': forms.FormWrapper(form, new_data, errors)},64 return render_to_response('registration/password_reset_form.html', {'form': forms.FormWrapper(form, new_data, errors)}, 65 65 context_instance=RequestContext(request)) 66 66 67 67 def password_reset_done(request): 68 return render_to_response('registration/password_reset_done ', context_instance=RequestContext(request))68 return render_to_response('registration/password_reset_done.html', context_instance=RequestContext(request)) 69 69 70 70 def password_change(request): … … 77 77 form.save(new_data) 78 78 return HttpResponseRedirect('%sdone/' % request.path) 79 return render_to_response('registration/password_change_form ', {'form': forms.FormWrapper(form, new_data, errors)},79 return render_to_response('registration/password_change_form.html', {'form': forms.FormWrapper(form, new_data, errors)}, 80 80 context_instance=RequestContext(request)) 81 81 password_change = login_required(password_change) 82 82 83 83 def password_change_done(request): 84 return render_to_response('registration/password_change_done ', context_instance=RequestContext(request))84 return render_to_response('registration/password_change_done.html', context_instance=RequestContext(request)) django/branches/magic-removal/django/contrib/comments/views/comments.py
r2493 r2700 233 233 comment = errors and '' or manipulator.get_comment(new_data) 234 234 comment_form = CommentFormWrapper(manipulator, new_data, errors, rating_choices) 235 return render_to_response('comments/preview ', {235 return render_to_response('comments/preview.html', { 236 236 'comment': comment, 237 237 'comment_form': comment_form, … … 301 301 if errors or request.POST.has_key('preview'): 302 302 comment = errors and '' or manipulator.get_comment(new_data) 303 return render_to_response('comments/free_preview ', {303 return render_to_response('comments/free_preview.html', { 304 304 'comment': comment, 305 305 'comment_form': forms.FormWrapper(manipulator, new_data, errors), … … 338 338 except ObjectDoesNotExist: 339 339 pass 340 return render_to_response('comments/posted ', {'object': obj}, context_instance=RequestContext(request))340 return render_to_response('comments/posted.html', {'object': obj}, context_instance=RequestContext(request)) django/branches/magic-removal/django/contrib/comments/views/karma.py
r2050 r2700 27 27 # Reload comment to ensure we have up to date karma count 28 28 comment = comments.get_object(pk=comment_id) 29 return render_to_response('comments/karma_vote_accepted ', {'comment': comment}, context_instance=RequestContext(request))29 return render_to_response('comments/karma_vote_accepted.html', {'comment': comment}, context_instance=RequestContext(request)) django/branches/magic-removal/django/contrib/comments/views/userflags.py
r2497 r2700 23 23 userflags.flag(comment, request.us
