From 8e828531c8075bd6a5adda2b0dfe6b6a5032eaa6 Mon Sep 17 00:00:00 2001 From: xsetra Date: Wed, 16 Aug 2017 10:31:15 +0300 Subject: [PATCH] URL fixed. http://example.com[/]example. Slash added --- ulakbus/lib/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ulakbus/lib/document.py b/ulakbus/lib/document.py index fc4208db..179200d2 100644 --- a/ulakbus/lib/document.py +++ b/ulakbus/lib/document.py @@ -47,7 +47,7 @@ def _get_template(self): """ try: t = Template.objects.get(name=self.file_name) - return {"template": "{}{}".format(settings.S3_PUBLIC_URL, t.template), + return {"template": "{}/{}".format(settings.S3_PUBLIC_URL, t.template), "modify_date": "{}".format(t.modify_date)} except ObjectDoesNotExist: raise ValueError("%s geçerli bir template değildir. "