text: """ Yatube URL configuration """
  
  from django.conf import settings
  from django.conf.urls import handler404, handler500
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.urls import include, path
  
  handler404 = "posts.views.page_not_found"  # noqa
  handler500 = "posts.views.server_error"  # noqa
  
  urlpatterns = [
      path("admin/", admin.site.urls),
      path("auth/", include("users.urls", namespace="users")),
      path("auth/", include("django.contrib.auth.urls")),
      path("", include("posts.urls", namespace="posts")),
      path("about/", include("about.urls", namespace="about")),
      path("api/v1/", include("api.urls", namespace="api")),
  ]
  
  if settings.DEBUG:
      urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
      urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  