Re: [Django] #13559: Need a contextprocessor for current site

31 views
Skip to first unread message

Django

unread,
May 5, 2011, 2:47:32 PM5/5/11
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
---------------------------------------+-------------------------------
Reporter: tonnzor | Owner: nobody
Type: New feature | Status: new
Milestone: 1.3 | Component: contrib.sites
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 1 | Easy pickings: 0
---------------------------------------+-------------------------------
Changes (by patchhammer):

* needs_better_patch: 0 => 1
* easy: => 0


Comment:

django-13559.patch fails to apply cleanly on to trunk

--
Ticket URL: <http://code.djangoproject.com/ticket/13559#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 7, 2011, 6:50:00 PM8/7/11
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
---------------------------------------+-------------------------------
Reporter: tonnzor | Owner: nobody
Type: New feature | Status: new
Milestone: 1.3 | Component: contrib.sites
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 1 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+-------------------------------
Changes (by min@…):

* cc: min@… (added)
* ui_ux: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:10>

Django

unread,
Mar 28, 2012, 10:11:42 AM3/28/12
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+------------------------------------
Reporter: tonnzor | Owner: nobody
Type: New feature | Status: new
Component: contrib.sites | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by tonnzor):

* cc: tonnzor (added)


Comment:

Joshua Ginsberg, could you please update your patch to match current
trunk?

I got no luck applying it to the revision given in patch file as well..

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:12>

Django

unread,
Apr 18, 2012, 5:38:46 AM4/18/12
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+------------------------------------
Reporter: tonnzor | Owner: nobody
Type: New feature | Status: new
Component: contrib.sites | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by hop):

I updated the patch to apply against current trunk.

Had to fix the unit test as well, but I'm not entirely sure it's OK.

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:13>

Django

unread,
Apr 18, 2012, 5:55:10 AM4/18/12
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+------------------------------------
Reporter: tonnzor | Owner: nobody
Type: New feature | Status: new
Component: contrib.sites | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by tonnzor):

* needs_better_patch: 1 => 0
* easy: 0 => 1


Comment:

Thanks, '''hop'''!

'''patchhammer''', could you apply the patch over trunk?

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:14>

Django

unread,
Apr 18, 2012, 8:30:45 AM4/18/12
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+------------------------------------
Reporter: tonnzor | Owner: nobody
Type: New feature | Status: new
Component: contrib.sites | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by hop):

* cc: hop (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:15>

Django

unread,
Jun 25, 2012, 3:55:16 PM6/25/12
to django-...@googlegroups.com
#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: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by krzysiumed):

* owner: nobody => krzysiumed
* cc: krzysiumed@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:16>

Django

unread,
Jun 26, 2012, 9:47:49 AM6/26/12
to django-...@googlegroups.com
#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

unread,
Jun 26, 2012, 10:35:35 AM6/26/12
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+--------------------------------------
Reporter: tonnzor | Owner: krzysiumed
Type: New feature | Status: assigned
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):

* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:18>

Django

unread,
Dec 16, 2012, 4:25:40 PM12/16/12
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+--------------------------------------
Reporter: tonnzor | Owner: krzysiumed
Type: New feature | Status: assigned
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
-------------------------------+--------------------------------------

Comment (by aaugustin):

#17005 is about adding a middleware for the same purpose in views.

With that middleware and the request context processor, the current site
will be available in {{ request.site }}, but that doesn't rule out a
specific context processor in case you don't want the site middleware or
the request context processor.

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:19>

Django

unread,
Nov 18, 2013, 2:57:18 PM11/18/13
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+----------------------------------------
Reporter: tonnzor | Owner: chrismedrela

Type: New feature | Status: assigned
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 chrismedrela):

* owner: krzysiumed => chrismedrela


Comment:

I've updated the patch: https://github.com/django/django/pull/1938. BTW,
krzysiumed is my old nick.

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:20>

Django

unread,
Feb 2, 2014, 11:55:39 AM2/2/14
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+----------------------------------------
Reporter: tonnzor | Owner: chrismedrela
Type: New feature | Status: assigned
Component: contrib.sites | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by aaugustin):

* needs_better_patch: 0 => 1


Comment:

See my comments on the pull request.

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:21>

Django

unread,
Feb 15, 2014, 11:21:25 AM2/15/14
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+----------------------------------------
Reporter: tonnzor | Owner: chrismedrela
Type: New feature | Status: assigned
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 chrismedrela):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:22>

Django

unread,
Jun 13, 2014, 3:37:37 PM6/13/14
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------+----------------------------------------
Reporter: tonnzor | Owner: chrismedrela
Type: New feature | Status: assigned
Component: contrib.sites | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by timo):

* needs_better_patch: 0 => 1


Comment:

I left comments for improvement on PR. Please uncheck "Patch needs
improvement" when you update it, thanks.

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:23>

Django

unread,
Jun 23, 2021, 7:27:16 AM6/23/21
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
----------------------------------+------------------------------------
Reporter: Artem Skoretskiy | Owner: (none)

Type: New feature | Status: new
Component: contrib.sites | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* owner: chrismedrela => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:24>

Django

unread,
Jun 19, 2024, 7:48:32 AM6/19/24
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------------+-------------------------------------
Reporter: Artem Skoretskiy | Owner: Farhan
| Ali Raza
Type: New feature | Status: assigned
Component: contrib.sites | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Farhan Ali):

* owner: (none) => Farhan Ali Raza
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:25>

Django

unread,
Oct 31, 2025, 4:42:18 PM10/31/25
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------------+-------------------------------------
Reporter: Artem Skoretskiy | Owner: Sylvain
| Boissel
Type: New feature | Status: assigned
Component: contrib.sites | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sylvain Boissel):

* owner: Farhan Ali Raza => Sylvain Boissel

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:26>

Django

unread,
Oct 31, 2025, 4:44:02 PM10/31/25
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------------+-------------------------------------
Reporter: Artem Skoretskiy | Owner: Sylvain
| Boissel
Type: New feature | Status: assigned
Component: contrib.sites | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sylvain Boissel):

[https://github.com/django/django/pull/20033 Updated PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:27>

Django

unread,
Oct 31, 2025, 5:17:47 PM10/31/25
to django-...@googlegroups.com
#13559: Need a contextprocessor for current site
-------------------------------------+-------------------------------------
Reporter: Artem Skoretskiy | Owner: Sylvain
| Boissel
Type: New feature | Status: assigned
Component: contrib.sites | Version: dev
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 Jacob Walls):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/13559#comment:28>
Reply all
Reply to author
Forward
0 new messages