The current path, mp3/, didn't match any of these.

2021. 4. 6. 23:46파이썬/Django

로그 에러

Not Found: /mp3/

mp3/urls.py에 아래와 같이 셋팅이 되어 있는데, 못 찾음

from django.urls import path
from . import views

app_name = 'mp3'
urlpatterns = [
    path('', views.index, name='index'),
]

project/urls.py에 mp3 관련해서 아래 내용이 포함되어야 함 

from django.contrib import admin
from django.urls import path, include
urlpatterns = [
    path('mp3/', include('mp3.urls')),
    path('admin/', admin.site.urls),
]