mirror of https://github.com/r4sas/py-i2phosts
Browse Source
This is done as a part of migration to django 1.3. See https://docs.djangoproject.com/en/1.3/topics/generic-views-migration/ for additional info.pull/1/head
Hidden Z
13 years ago
2 changed files with 16 additions and 10 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
from django.views.generic.base import TemplateView |
||||
from pyi2phosts.lib.utils import get_b32 |
||||
import settings |
||||
|
||||
class LocalTemplateView(TemplateView): |
||||
def get_context_data(self, **kwargs): |
||||
context = super(LocalTemplateView, self).get_context_data(**kwargs) |
||||
context.update({ |
||||
'title': settings.SITE_NAME, |
||||
'domain': settings.DOMAIN, |
||||
'b64': settings.MY_B64, |
||||
'b32': get_b32(settings.MY_B64) |
||||
}) |
||||
return context |
Loading…
Reference in new issue