#13559: Need a contextprocessor for current site
-------------------------------+--------------------------------------
Reporter: tonnzor | Owner: krzysiumed
Type: New feature | Status: new
Component: contrib.sites | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by krzysiumed):
* easy: 1 => 0
Comment:
I did some minor changes in hop's patch:
- Repaired a few broken links at
[[https://docs.djangoproject.com/en/dev/ref/contrib/sites/|/ref/contrib/sites.txt]]
doc.
- Added note at [[https://docs.djangoproject.com/en/1.4/ref/settings
/#template-context-processors|/ref/settings/#template-context-
processors]].
- Sites tests used [[https://docs.djangoproject.com/en/1.4/ref/generic-
views/#django-views-generic-simple-direct-to-
template|django.views.generic.simple.direct_to_template]]
function which comes from old function-based generic views which
were permanently deleted. This made some tests broken.
[[https://docs.djangoproject.com/en/dev/ref/class-based-
views/base/#django.views.generic.base.TemplateView|django.view.generic.TemplateView]]
is used now and all tests pass.
- Refactored context processors' tests -- joined `ContextProcessorTest`
and `RequestSiteContextTest`, tests use
[[https://docs.djangoproject.com/en/dev/topics/testing/?from=olddocs
#overriding-settings|django.test.utils.override_settings]] instead of
overriding settings
in `setUp` and `tearDown`.
- Formatted in PEP8 style.
--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:17>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.