|
@ -490,7 +490,7 @@ class Gescon(models.Model): |
|
|
projeto = Projeto.objects.get(sigla=sigla_sigi) |
|
|
projeto = Projeto.objects.get(sigla=sigla_sigi) |
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
response = requests.get(url) |
|
|
response = requests.get(url, verify=False) |
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|
self.add_message( |
|
|
self.add_message( |
|
|
_(u"\tErro ao acessar {url}: {errmsg}").format( |
|
|
_(u"\tErro ao acessar {url}: {errmsg}").format( |
|
@ -775,4 +775,4 @@ class Gescon(models.Model): |
|
|
@classmethod |
|
|
@classmethod |
|
|
def load(cls): |
|
|
def load(cls): |
|
|
obj, created = cls.objects.get_or_create(pk=1) |
|
|
obj, created = cls.objects.get_or_create(pk=1) |
|
|
return obj |
|
|
return obj |
|
|