mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-08 21:04:17 +00:00
pyi2phosts/other/views.py: pass b32, b64 variables to template
This commit is contained in:
parent
5ead4d4e78
commit
866c451a67
@ -1,8 +1,13 @@
|
|||||||
from django.shortcuts import render_to_response
|
from django.shortcuts import render_to_response
|
||||||
|
|
||||||
|
from pyi2phosts.lib.utils import get_b32
|
||||||
|
|
||||||
import settings
|
import settings
|
||||||
|
|
||||||
def index(request):
|
def index(request):
|
||||||
return render_to_response('index.html', {
|
return render_to_response('index.html', {
|
||||||
'title': settings.SITE_NAME,
|
'title': settings.SITE_NAME,
|
||||||
'domain': settings.DOMAIN,
|
'domain': settings.DOMAIN,
|
||||||
|
'b64': settings.MY_B64,
|
||||||
|
'b32': get_b32(settings.MY_B64),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user