<filename>admin/urls.py
from django.urls import path
from .views import index, users, weather

app_name = 'admin'
urlpatterns = [
    path('', index.index, name='index'),
    path('users/', users.index, name='users.index'),
    path('users/add', users.add, name='users.add'),
    path('users/update', users.update, name='users.update'),
    path('weather7d/<str:code>', weather.weather7d, name='weather7d'),
    path('weather/<str:code>', weather.weather, name='weather'),
]
<filename>admin/urls.py
from django.urls import path
from .views import index, users, weather

app_name = 'admin'
urlpatterns = [
    path('', index.index, name='index'),
    path('users/', users.index, name='users.index'),
    path('users/add', users.add, name='users.add'),
    path('users/update', users.update, name='users.update'),
    path('weather7d/<str:code>', weather.weather7d, name='weather7d'),
    path('weather/<str:code>', weather.weather, name='weather'),
]