blog/urls.py
10º Configurar URLs
Crie um arquivo urls.py no aplicativo blog e configure as URLs:
from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
]
meu_blog/urls.py
Adicione o arquivo de URLs do aplicativo blog ao arquivo de URLs principal do projeto:
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('blog.urls')),
]