Sorry, beginner here. I was following this tutorial https://www.youtube.com/watch?v=JD-age0BPVo on py/django and managed to get the webserver running. However, it simply displays the default page:
when in my urls.py, I have the default page set.
urls.py
from django.contrib import admin
from django.urls import include
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('api.urls'))
]
and in api.urls:
from django.urls import path
from .views import main
urlpatterns = [
path('', main)
]
and finally in api.views.py I have main(request)
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def main(request):
return HttpResponse("hello")
My project directory looks like this in case it helps:
EDIT: