Repository: zestedesavoir/zds-site

Issue:
Afficher la version du site sur la page de profil
[Via Krostar](http://zestedesavoir.com/forums/sujet/694/affichage-de-la-version-du-site-en-bas-a-gauche)

La version du site ne s'affiche pas en bas a gauche dans [la page de profil](http://zestedesavoir.com/membres/parametres/profil/).



Discussion:

Resolving patch:
diff --git a/zds/member/views.py b/zds/member/views.py
--- a/zds/member/views.py
+++ b/zds/member/views.py
@@ -17,7 +17,7 @@
 from django.db import transaction
 from django.db.models import Q
 from django.http import Http404, HttpResponse
-from django.shortcuts import redirect, get_object_or_404, render_to_response
+from django.shortcuts import redirect, get_object_or_404
 from django.template import Context, RequestContext
 from django.template.loader import get_template
 from django.views.decorators.http import require_POST
@@ -359,8 +359,7 @@ def settings_mini_profile(request, user_name):
             return redirect(reverse("zds.member.views.details",
                                     args=[profile.user.username]))
         else:
-            return render_to_response("member/settings/profile.html", c,
-                                      RequestContext(request))
+            return render_template("member/settings/profile.html", c)
     else:
         form = MiniProfileForm(initial={
             "biography": profile.biography,
@@ -369,8 +368,7 @@ def settings_mini_profile(request, user_name):
             "sign": profile.sign,
         })
         c = {"form": form, "profile": profile}
-        return render_to_response("member/settings/profile.html", c,
-                                  RequestContext(request))
+        return render_template("member/settings/profile.html", c)
 
 
 @can_write_and_read_now
@@ -409,8 +407,7 @@ def settings_profile(request):
                              "Le profil a correctement été mis à jour.")
             return redirect(reverse("zds.member.views.settings_profile"))
         else:
-            return render_to_response("member/settings/profile.html", c,
-                                      RequestContext(request))
+            return render_template("member/settings/profile.html", c)
     else:
         form = ProfileForm(initial={
             "biography": profile.biography,
@@ -423,8 +420,7 @@ def settings_profile(request):
             "sign": profile.sign,
         })
         c = {"form": form}
-        return render_to_response("member/settings/profile.html", c,
-                                  RequestContext(request))
+        return render_template("member/settings/profile.html", c)
 
 
 @can_write_and_read_now
@@ -469,13 +465,11 @@ def settings_account(request):
                 messages.error(request, "Une erreur est survenue.")
                 return redirect(reverse("zds.member.views.settings_account"))
         else:
-            return render_to_response("member/settings/account.html", c,
-                                      RequestContext(request))
+            return render_template("member/settings/account.html", c)
     else:
         form = ChangePasswordForm(request.user)
         c = {"form": form}
-        return render_to_response("member/settings/account.html", c,
-                                  RequestContext(request))
+        return render_template("member/settings/account.html", c)
 
 
 @can_write_and_read_now
@@ -497,13 +491,11 @@ def settings_user(request):
             old.save()
             return redirect(old.profile.get_absolute_url())
         else:
-            return render_to_response("member/settings/user.html", c,
-                                      RequestContext(request))
+            return render_template("member/settings/user.html", c)
     else:
         form = ChangeUserForm()
         c = {"form": form}
-        return render_to_response("member/settings/user.html", c,
-                                  RequestContext(request))
+        return render_template("member/settings/user.html", c)
 
 
 
diff --git a/zds/search/views.py b/zds/search/views.py
--- a/zds/search/views.py
+++ b/zds/search/views.py
@@ -1,9 +1,9 @@
 # coding: utf-8
 
-from django.shortcuts import render_to_response
 from haystack.views import SearchView
-from zds.utils.paginator import paginator_range
 from zds.search.constants import MODEL_NAMES
+from zds.utils.paginator import paginator_range
+from zds.utils import render_template
 
 class CustomSearchView(SearchView):
     def create_response(self):
@@ -26,4 +26,4 @@ def create_response(self):
             context['suggestion'] = self.form.get_suggestion()
 
         context.update(self.extra_context())
-        return render_to_response(self.template, context, context_instance=self.context_class(self.request))
\ No newline at end of file
+        return render_template(self.template, context)


Test patch: