Fixes Issue #52: Use a catch-all in urls.py instead of PageFallbackMiddleware
Avoided creating two RequestContexts per request, which was causing duplicated queries
- Fixes sub issue of Issue #47: Query count reduction
Reduced the number of queries needed by show_page_content
- Fixes sub issue of Issue #47: Query count reduction
Removed some unnecessary queries due to PageManager methods.
- Fixes sub issue of Issue #47: Query count reduction
- Bugfix shown_in_menu_for_user() for staff users
Refactored menu tests in preparation for expanding them.
- Fixes sub issue of Issue #47: Query count reduction
Added more data for menu tests, and fixed tests accordingly
- Fixes sub issue of Issue #47: Query count reduction
Added tests for show_menu with "all_descendants"
- Fixes sub issue of Issue #47: Query count reduction
Added tests for minimum and maximum level for show_menu
- Fixes sub issue of Issue #47: Query count reduction
Added test for rendering menu when on current page is a different root
- Fixes sub issue of Issue #47: Query count reduction
Rewrote show_menu template tag to be much more efficient in use of queries.
- Fixes sub issue of Issue #47: Query count reduction
- Fixes sub issue of Issue #12: Too many DB queries
Fix for issue #38: Incompatible with django-mptt 0.5-pre (redo)
Optimization of looking up Page by URL, reducing it to 2 or 3 queries maximum.
- Fixes sub issue of Issue #47: Query count reduction
Optimized Page.get_ancestors for the case where we have already retrieved the chain of ancestors.
- Fixes sub issue of Issue #47: Query count reduction
Fixed bug where an empty list stored in ContentItem.used_on_pages_data was being ignored.
- Fixes sub issue of Issue #47: Query count reduction
Tightened tests for show_menu to check query count in all cases
- Fixes sub issue of Issue #47: Query count reduction
Replaced request.path with request.path_info
- bugfix in PageManger
Changed how the middleware and url changes that should be made are communicated
Added Luke Plant to contributors… thanks Luke!
Bumped version to 0.9.6 - contains backwards incompatible change
fiber.middleware.PageFallbackMiddleware has been removed.
See README.rst for new implementation details.
It basically boils down to this:
remove 'fiber.middleware.PageFallbackMiddleware' from settings.MIDDLEWARE_CLASSES, and
add (r'', 'fiber.views.page') to the end of your urls.py
Removed staticfiles urlpatterns setting, as suggested here:
https://docs.djangoproject.com/en/dev/howto/static-files/#upgrading-from-django-staticfiles - "you no longer need to add anything to your URLconf for serving static files in development."
(this also didn't work correctly with the new catch-all URL that replaces the PageFallbackMiddleware, which should always come last in the URLconf)