Code Monkey home page Code Monkey logo

Comments (6)

strogonoff avatar strogonoff commented on August 18, 2024 1

I believe the problem is that {{ request.path }} is empty on lines 7 and 25 because {{ request }} does not get passed to the pagination template. Pull request pending. Iā€™m using my fork in the meantime and not experiencing this issue anymore.

from dj-pagination.

christianmlong avatar christianmlong commented on August 18, 2024

Django 1.10.6, dj-pagination 2.2.1

My template configuration

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
       'DIRS': [
            SITE_TEMPLATES_DIR,
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.contrib.auth.context_processors.auth',
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.template.context_processors.i18n',
                'django.template.context_processors.media',
                'django.template.context_processors.static',
                'django.template.context_processors.tz',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

from dj-pagination.

pydanny avatar pydanny commented on August 18, 2024

If you submit a pull request I'll create a new PyPI release. šŸ˜„

from dj-pagination.

chengxiao avatar chengxiao commented on August 18, 2024

Same problem with @christianmlong
how to fix it?

from dj-pagination.

christianmlong avatar christianmlong commented on August 18, 2024

I ended up just using PAGINATION_DISABLE_LINK_FOR_FIRST_PAGE=False. The urls aren't as clean, but it works.

from dj-pagination.

pydanny avatar pydanny commented on August 18, 2024

Pushed version 2.3 to PyPI: https://pypi.python.org/pypi/dj-pagination

from dj-pagination.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.