Commit 5e2c928b authored by Nicholo Pardines's avatar Nicholo Pardines

Added urls.py code for about django app

parent ca9a362a
from django.urls import path
from .views import aboutGreeting
# .views as in ./views and then we import the index function
# which we just created
urlpatterns = [
path('', aboutGreeting, name='aboutGreet'),
]
# built in function
app_name = "about"
\ No newline at end of file
......@@ -2,7 +2,7 @@ from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def greeting(request):
def aboutGreeting(request):
return HttpResponse("Hi I'm Nick! \n"
+"My favorite genres are punk and indie-folk")
......
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