Giter Club home page Giter Club logo

django-easy-pjax's People

Contributors

nigma avatar pagenoare avatar scottwoodall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-easy-pjax's Issues

do I need to configure server side or change HTTP header

I am new to pjax and trying to use django-easy-pjax as this:
screenshot_9
1.html
screenshot_14
views.py
screenshot_15
urls.py
screenshot_16

But this is not working.Do I need to add pjax_base.html or configure HTTP header to make it work? What else do I need to add in pjax_base.html more than base.html if that is required?

add Django 1.8 campatibilty

This app still uses a deprecated and removed feature of Django.

Error
ImportError: cannot import name 'add_to_builtins'

Backtrace

(env)user@server:~/Projects/pjax$ ./project/manage.py runserver --settings=project.settings.test 
Traceback (most recent call last):
  File "./project/manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/home/user/Projects/pjax/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/home/user/Projects/pjax/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 312, in execute
    django.setup()
  File "/home/user/Projects/pjax/env/lib/python3.4/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/user/Projects/pjax/env/lib/python3.4/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/home/user/Projects/pjax/env/lib/python3.4/site-packages/django/apps/config.py", line 86, in create
    module = import_module(entry)
  File "/home/user/Projects/pjax/env/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/user/Projects/pjax/env/lib/python3.4/site-packages/easy_pjax/__init__.py", line 14, in <module>
    from django.template import add_to_builtins
ImportError: cannot import name 'add_to_builtins'

block extrajs

Hi,
any solution for appending js and css files to base?

{% block extrajs %}
js code
{% endblock %}

Issue with nested pages

I'm having an issue getting pjax to work on nested pages. For example, navigation from the homepage to the blog main page works as intended, however when you then navigate to a specific blog post from that blog main page, the page is reloaded.

I have checked that I have my pjax template tag in place and that my settings.py file is properly configured for Django 1.8+.

Do you know of any reason why this might be happening? I can share code if necessary.

Looks like this library only works with TemplateView

It doesn't work with other Django class-based views such as FormView, CreateView etc.

When you use any other class-based view aside TemplateView, django is not able to render the context properly. Making the page messy

[django 1.9a1] add_to_builtins removed

In django 1.9a1 add_to_builtins was removed. You're now supposed to put this into settings.TEMPLATES['OPTIONS']['builtins'].

@nigma If there is any hope of it getting merged and released I may make a PR that introduces a code side check whether we're in django 1.9+ and add documentation on putting easy-pjax into template options.


Traceback:

(project)kondou:project/ (master) $ ./manage.py shell
Traceback (most recent call last):
  File "/home/kondou/git/project/lib/python3.4/site-packages/easy_pjax/__init__.py", line 15, in <module>
    from django.template import add_to_builtins
ImportError: cannot import name 'add_to_builtins'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/kondou/git/project/lib/python3.4/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
    utility.execute()
  File "/home/kondou/git/project/lib/python3.4/site-packages/django/core/management/__init__.py", line 324, in execute
    django.setup()
  File "/home/kondou/git/project/lib/python3.4/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/kondou/git/project/lib/python3.4/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/home/kondou/git/project/lib/python3.4/site-packages/django/apps/config.py", line 90, in create
    module = import_module(entry)
  File "/home/kondou/git/project/lib64/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/kondou/git/project/lib/python3.4/site-packages/easy_pjax/__init__.py", line 18, in <module>
    from django.template.base import add_to_builtins
ImportError: cannot import name 'add_to_builtins'

Motivation against django-pjax

Could you please help us decide which application to choose between yours and the venerable jacobian's django-pjax ?
Maybe a comparative snippet of code would do it...
Thanks a lot !

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.