Code

Opened 6 years ago

Closed 6 years ago

#6793 closed (wontfix)

New template context processor: Export settings to templates

Reported by: Alberto García Hierro <fiam@…> Owned by: nobody
Component: Core (Other) Version: master
Severity: Keywords: requestcontext, template, settings
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

This patch add support for exporting settings from settings.py to the template engine, using the RequestContext feature. Full documentation is included, as well as an example.

Attachments (1)

exported_settings_processor.diff (2.4 KB) - added by Alberto García Hierro <fiam@…> 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by Alberto García Hierro <fiam@…>

comment:1 Changed 6 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

In the past we've elected not to do this. Please search out the relevant discussion on the django-developers list (look around the period when the media context processor was added, as that was the main requirement) and then, if you think there's really something that hasn't been covered -- rather than just wanting to bring it up again -- raise the issue on the mailing list.

Failing that, you could publicise this through djangosnippets, since it requires no core changes.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.