python(django hello)

from django.contrib import admin
from django.urls import path
from django.shortcuts import HttpResponse
import time
def home(request):
    return HttpResponse('<h1>hello</h1>')

urlpatterns = [
    path('admin/', admin.site.urls),
    path('h.html/', home),
]

发表评论