摘要:
默认django-pagination 样式:使用bootstrap后样式:(有些瑕疵,下面来完善一下)修改后:效果还不错吧。那么讲下如何修改。首先找到其源码: (路径:site-packages\django_pagination-1.0.7-py2.7.egg\pagination\templates\pagination\pagination.html)[html]view plaincopyprint?{%ifis_paginated%}{%loadi18n%}<divclass="pagination">{%ifpage_obj.has_previou 阅读全文
摘要:
是否有人出现这类错误:首先确认几个修改处:setting.py添加INSTALLED_APPS=(#...'pagination',)添加中间件MIDDLEWARE_CLASSES=(#...'pagination.middleware.PaginationMiddleware',)TEMPLATE_CONTEXT_PROCESSORS=("django.core.context_processors.auth","django.core.context_processors.debug","django.cor 阅读全文