I\'m new to Django and am trying to create the back end code for a music application on my website.
I have created the correct view in my views.py file (in the corre
Use an empty string '' instead of '/' or r'^$'. It works like a charm. Code is as below:
from django.urls import path, re_path urlpatterns = [ path('admin/', admin.site.urls), path('', home, name='home'), ]