Django
44
Вклад в тег
urlpatterns = [
path('admin/', admin.site.urls),
path('', include(('learning_log.urls', 'learning_log'), namespace='learning_logs')),
]
{% load spurl %}
<a class="page-link" href="{% spurl query=request.GET set_query='page={{ p }}'%}">{{ p }}</a>
{% load spurl %}
<a href="{% spurl path=request.get_full_path query=request.GET set_query="page={{ page }}" %}">{{ page }}</a>