mirror of
https://github.com/AdrienHallet/HaitiWater.git
synced 2026-10-29 19:05:56 +00:00
23 lines
619 B
Python
23 lines
619 B
Python
from django.http import HttpResponse
|
|
from django.template import loader
|
|
|
|
from haitiwater.settings import PROJECT_NAME, PROJECT_VERSION
|
|
|
|
|
|
def index(request):
|
|
template = loader.get_template('profile.html')
|
|
context = {
|
|
'project_version': PROJECT_VERSION,
|
|
'project_name': PROJECT_NAME,
|
|
}
|
|
return HttpResponse(template.render(context, request))
|
|
|
|
|
|
def conf_change(request):
|
|
template = loader.get_template('infos_changed.html')
|
|
context = {
|
|
'project_version': PROJECT_VERSION,
|
|
'project_name': PROJECT_NAME,
|
|
}
|
|
return HttpResponse(template.render(context, request))
|