Re: [Django] #13338: adding custom template context processor(s) to settings.py screws up admin

2012-03-13 Thread Django
#13338: adding custom template context processor(s) to settings.py screws up 
admin
-+-
 Reporter:  marshall.ent@…   |Owner:  nobody
 Type:  Uncategorized|   Status:  closed
Component:  Template system  |  Version:  1.1
 Severity:  Normal   |   Resolution:  invalid
 Keywords:  template context | Triage Stage:
  processor  |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by anonymous):

 * ui_ux:   => 0
 * type:   => Uncategorized
 * severity:   => Normal
 * easy:   => 0


Comment:

 http://how-study-abroad.com

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13338: adding custom template context processor(s) to settings.py screws up admin

2010-04-13 Thread Django
#13338: adding custom template context processor(s) to settings.py screws up 
admin
-+--
  Reporter:  marshall@gmail.com  | Owner:  nobody   
 
Status:  closed  | Milestone:   
 
 Component:  Template system |   Version:  1.1  
 
Resolution:  invalid |  Keywords:  template context 
processor
 Stage:  Unreviewed  | Has_patch:  0
 
Needs_docs:  0   |   Needs_tests:  0
 
Needs_better_patch:  0   |  
-+--
Changes (by Alex):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Trac is not for asking support questions, please use #django or the
 django-users mailing list.  For the record this isn't a bug, when you set
 TEMPLATE_CONTEXT_PROCESSORS you aren't adding to the defaults, you're
 overiding them, so you need to add the defaults in.

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13338: adding custom template context processor(s) to settings.py screws up admin

2010-04-13 Thread Django
#13338: adding custom template context processor(s) to settings.py screws up 
admin
+---
 Reporter:  marshall@gmail.com  |   Owner:  nobody
   Status:  new |   Milestone:
Component:  Template system | Version:  1.1   
 Keywords:  template context processor  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 I added my own template context processor:

 {{{
 TEMPLATE_CONTEXT_PROCESSORS = (
 'www.context_processor.static_url',
 )
 }}}

 and the admin system stopped receiving its context and I got
 TemplateSyntaxErrors. It worked again when I added:


 {{{
 TEMPLATE_CONTEXT_PROCESSORS = (
 'www.context_processor.static_url',
 'django.core.context_processors.auth',
 )
 }}}

 is there a reason I have to manually add the context processor for auth
 after creating a custom processor? A user in #django told me to add the
 following:


 {{{
 from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
 }}}

 to the top of my settings.py, I did that and added my template context
 processor using:


 {{{
 TEMPLATE_CONTEXT_PROCESSORS += (
 'www.context_processor.static_url',
 )
 }}}

 which seems to have worked. What's going on? Is this the way it's supposed
 to be or have I done something I'm not supposed to?

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.