diff options
| author | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2009-12-28 18:44:20 +0000 |
|---|---|---|
| committer | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2009-12-28 18:44:20 +0000 |
| commit | 852d50136ca934a314712983f16ee1abeac6a19b (patch) | |
| tree | f14fd7aa78bdbf1973e0992a1c806560c1aff810 /polls/views.py | |
| parent | 648e765944add7137feecfa8ea139267e1ed520c (diff) | |
| download | Papillon-852d50136ca934a314712983f16ee1abeac6a19b.tar.bz2 Papillon-852d50136ca934a314712983f16ee1abeac6a19b.zip | |
Simplification of base url management
Diffstat (limited to 'polls/views.py')
| -rw-r--r-- | polls/views.py | 4 |
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]: |
