Fix some paths

This commit is contained in:
Aarni Halinen
2019-10-09 23:23:16 +03:00
parent 88f37928ac
commit 7ffddf41f8
5 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ from django.template.loader import render_to_string
import logging
import requests
from dealer.git import git
from sikweb.settings import URL
from ohlhafv.models import OhlhafvChallenge
from ohlhafv.forms import OhlhafvForm
@@ -39,7 +40,7 @@ def ohlhafv_submit(request, *args, **kwargs):
challenge = form.instance
email = form.cleaned_data.get('victim_email', '')
url = 'https://sika.sahkoinsinoorikilta.fi/ohlhafv/list'
url = f'https://{URL}/ohlhafv/list'
subject = _('Sinut on haastettu Øhlhäfviin!')
message = render_to_string(