2017-02-15 04:34:06 +00:00
|
|
|
from django.views.generic import TemplateView
|
2017-03-20 20:05:41 +00:00
|
|
|
from django.utils.translation import get_language
|
2017-02-15 04:34:06 +00:00
|
|
|
|
|
|
|
class IndexView(TemplateView):
|
|
|
|
template_name = "alplora/index.html"
|
2017-03-20 20:05:41 +00:00
|
|
|
|
|
|
|
def get_context_data(self, *args, **kwargs):
|
|
|
|
context = super(IndexView, self).get_context_data(**kwargs)
|
|
|
|
language = get_language()
|
|
|
|
context.update({
|
|
|
|
'language': language
|
|
|
|
})
|
|
|
|
return context
|
|
|
|
|
2017-02-16 07:15:00 +00:00
|
|
|
|
|
|
|
class LoginView(TemplateView):
|
|
|
|
template_name = "alplora/login.html"
|