# urls
urlpatterns = [
path('', home, name='home'),
path('test/', test, name='test'),
path('<int:id>/', article, name='arcicl'),
]
# views.py (условно)
def home(request):
return HttpResponse('home')
def test(request):
return HttpResponse('test')
def article(request, id):
return HttpResponse(id)
<int:id>
<img src="domen.ru/{% static 'images/logo.jpg' %}" alt="" />
Насчет middleware не понял - зачем?
await ctx.channel.purge(limit=1)
await ctx.message.delete()