Fixed Favicon, Add Doctype, and add dynamic Lang in html
This commit is contained in:
parent
dd546d568c
commit
35c7914b94
3 changed files with 16 additions and 3 deletions
|
|
@ -1,8 +1,17 @@
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
from django.utils.translation import get_language
|
||||
|
||||
class IndexView(TemplateView):
|
||||
template_name = "alplora/index.html"
|
||||
|
||||
def get_context_data(self, *args, **kwargs):
|
||||
context = super(IndexView, self).get_context_data(**kwargs)
|
||||
language = get_language()
|
||||
context.update({
|
||||
'language': language
|
||||
})
|
||||
return context
|
||||
|
||||
|
||||
class LoginView(TemplateView):
|
||||
template_name = "alplora/login.html"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue