from django.conf.urls import url
from django.http import HttpResponse
from django.template import engines


def show_user(request):
    content = (
        engines["django"]
        .from_string(
            "{% if user.is_authenticated %}{{ user }}"
            "{% elif user.is_anonymous %}anonymous"
            "{% else %}no user"
            "{% endif %}"
        )
        .render(request=request)
    )
    return HttpResponse(content, content_type="text/plain")


urlpatterns = [url(r"^", show_user)]

@@ -1,37 +1,4 @@
-from django.conf.urls import url%0A
 from
@@ -66,16 +66,48 @@
 engines%0A
+from django.urls import re_path%0A
 %0A%0Adef sh
@@ -483,15 +483,18 @@
  = %5B
-url
+re_path
 (r%22
-%5E
 %22, s

Fix deprecation warning.