From 5f09c316d4aef9d43d9ca92e7f75f67fbd4c7ae9 Mon Sep 17 00:00:00 2001 From: Ben Plesser Date: Wed, 21 Sep 2011 14:59:05 -0400 Subject: [PATCH] remove script prefix --- djangorestframework/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/djangorestframework/views.py b/djangorestframework/views.py index fabf57272..108327eea 100644 --- a/djangorestframework/views.py +++ b/djangorestframework/views.py @@ -113,8 +113,8 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView): self.headers = {} # Calls to 'reverse' will not be fully qualified unless we set the scheme/host/port here. - prefix = '%s://%s' % (request.is_secure() and 'https' or 'http', request.get_host()) - set_script_prefix(prefix) + #prefix = '%s://%s' % (request.is_secure() and 'https' or 'http', request.get_host()) + #set_script_prefix(prefix) try: self.initial(request, *args, **kwargs) @@ -157,7 +157,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView): response.headers.update(self.headers) result = self.render(response) - set_script_prefix("/") + #set_script_prefix("/") return result