From 40c73d78896c453fdfc1e7b8c573032e43396c5d Mon Sep 17 00:00:00 2001 From: Breno Date: Tue, 1 Apr 2014 13:13:30 -0300 Subject: [PATCH] Correcao/refatoracao do path do MEDIA_ROOT --- sigi/apps/metas/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sigi/apps/metas/views.py b/sigi/apps/metas/views.py index 5a62f65..c43cc5b 100644 --- a/sigi/apps/metas/views.py +++ b/sigi/apps/metas/views.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- import csv +import os + from django.http import HttpResponse from django.core.exceptions import PermissionDenied from django.utils import simplejson @@ -20,7 +22,7 @@ from sigi.apps.utils import to_ascii from sigi.apps.financeiro.models import Desembolso from sigi.apps.metas.templatetags.mapa_tags import descricao_servicos -JSON_FILE_NAME = MEDIA_ROOT + 'apps/metas/map_data.json' +JSON_FILE_NAME = os.path.join(MEDIA_ROOT, 'apps/metas/map_data.json') @login_required