Commit 95bb937f authored by Tanya's avatar Tanya

edited views.py files and urls.py files of homepage, about, and contact apps

parent a0212749
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "about"
from django.shortcuts import render from django.shortcuts import render
# Create your views here. from django.http import HttpResponse
def index(request):
return HttpResponse('My name is Tanya and I like listening to band music.')
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "contact"
from django.shortcuts import render from django.shortcuts import render
# Create your views here. from django.http import HttpResponse
def index(request):
return HttpResponse('Contact Number: 09170001111')
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "homepage"
from django.shortcuts import render from django.shortcuts import render
# Create your views here. from django.http import HttpResponse
def index(request):
return HttpResponse('Welcome to Tanya’s Music Library!')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment