8

Add origin country rule (#190)

This commit is contained in:
tm-kn
2018-09-25 06:51:25 +01:00
committed by Jasper Berghoef
parent b11a6ce4ca
commit 7d679d7111
11 changed files with 419 additions and 3 deletions

View File

@@ -5,3 +5,7 @@ def render_template(value, **context):
template = engines['django'].from_string(value)
request = context.pop('request', None)
return template.render(context, request)
def get_custom_ip(request):
return '123.123.123.123'