summaryrefslogtreecommitdiff
path: root/polls/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'polls/views.py')
-rw-r--r--polls/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/polls/views.py b/polls/views.py
index 386792f..f6bc0c2 100644
--- a/polls/views.py
+++ b/polls/views.py
@@ -40,9 +40,7 @@ def getBaseResponse(request):
"""Manage basic fields for the template
If not null the second argument returned is a redirection.
"""
- #Get the root url in order to redirect to the main page
- url = "/".join([request.META['HTTP_HOST'],
- request.path.split('/')[1], ''])
+ url = BASE_SITE
# setting the current language and available languages
if 'language' in request.GET:
if request.GET['language'] in [language[0] for language in LANGUAGES]: