<filename>src/download/urls.py
from django.conf.urls import url
from django.urls import path

from . import views

app_name = 'download'

urlpatterns = [
    path(
        'stats/',
        views.all_stats,
        name='all_stats'),
    path(
        'stats/<slug:name>',
        views.app_stats,
        name='app_stats'),
]

<filename>src/download/urls.py
from django.conf.urls import url
from django.urls import path

from . import views

app_name = 'download'

urlpatterns = [
    path(
        'stats/',
        views.all_stats,
        name='all_stats'),
    path(
        'stats/<slug:name>',
        views.app_stats,
        name='app_stats'),
]
