Django View & URL (1)
View
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world")Url
app
โโโ __init__.py
โโโ admin.py
โโโ apps.py
โโโ migrations
โ โโโ __init__.py
โโโ models.py
โโโ tests.py
โโโ urls.py
โโโ views.pyapp/urls.py
project/urls.py
Last updated