Files
Django_kube/django_code/onenote/apps.py
T
pi-ux-ce 80877663a9
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 59s
new version with the scale Up option
2024-11-06 11:09:52 +00:00

28 lines
785 B
Python

from django.apps import AppConfig
from django.http import HttpResponse
from django.shortcuts import render
from django.shortcuts import redirect
#from django.template.loader import render_to_string
from django.template import loader
#import time
#import random
def hello(request):
# htmlContent = '
#<!DOCTYPE html>
#<html lang="en">
#<body>
#<strong>Hello World from const</strong>
#</body>
#</html>
#'
# response = "coucou"
# context = {'response': HttpResponse(response)}
# return HttpResponse(htmlContent)
# return HttpResponse('<h1>Hello onenote! <h1>')
# return render(request, 'hello.html', context)
template = loader.get_template('onenote/hello.html')
# template = loader.get_template('onenote/Roser.mht')
return HttpResponse(template.render())