text: from django.contrib import admin
  from django.urls import path
  from django.conf import settings
  from django.conf.urls.static import static
  from blog.views import frontpage, post_detail
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  urlpatterns = [
      path('', frontpage, name='frontpage'),
      path('admin/', admin.site.urls),
      path('<slug:slug>/', post_detail, name='post_detail'),
  ]
  
  urlpatterns += staticfiles_urlpatterns()
  urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)