Re: TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2015-03-14 Thread Thế Giới Âm Nhạc
e 21, 2013 9:18:59 PM UTC-4, ayeowch wrote: >> >> TEMPLATE_CONTEXT_PROCESSORS is not there by default in your project's >> settings.py. It's defined in the django/conf/global_settings.py, see >> https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_CONTEXT

Re: TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2013-06-25 Thread Some Developer
On 22/06/2013 02:24, asax...@princeton.edu wrote: # Make this unique, and don't share it with anybody. SECRET_KEY = '8c(j)m3dm!m3gd_n#vjjfqdeuq!ltsj3+xii617dos1i@_pc7*' You'll want to change your secret key now that you have posted it on a public mailing list if you are

Re: TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2013-06-21 Thread asaxena
Thank you! I'm always amazed at how quickly and accurately people respond in this group--much appreciated. Alok On Friday, June 21, 2013 9:18:59 PM UTC-4, ayeowch wrote: > > TEMPLATE_CONTEXT_PROCESSORS is not there by default in your project's > settings.py. It's defined in the dj

Re: TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2013-06-21 Thread Addy Yeow
TEMPLATE_CONTEXT_PROCESSORS is not there by default in your project's settings.py. It's defined in the django/conf/global_settings.py, see https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_CONTEXT_PROCESSORSfor the default callables that are included. On Sat, Jun 22, 2013

TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2013-06-21 Thread asaxena
Hey everyone, Currently a noob to Django--I'm using Django 1.5.1 installed with Python 2.7 in a virtualenv. I'm learning about context processors and noticed that TEMPLATE_CONTEXT_PROCESSORS is completely missing from my settings.py. Is this normal? Am I supposed to add Django's default

Re: Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Guys, I solved. It's django-debug-toolbar fault. It's does double requests and loads all the context processor :( Thanx 2012/6/13 Ricardo L. Dani <ricardod...@gmail.com> > Hello everyone, > > I'm having a issue with template_context_processors requests and views > that do n

Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Hello everyone, I'm having a issue with template_context_processors requests and views that do not use the context processors, i.e. in a render_to_response without use of RequestContext. For example, in my TEMPLATE_CONTEXT_PROCESSORS, as default, I have

Re: TEMPLATE_CONTEXT_PROCESSORS and testserver

2010-10-13 Thread diogobaeder
Never mind... one of the views was lacking a context_instance... :-P Thanks! On 12 out, 17:17, diogobaeder wrote: > Hi there, > > I've being noticing something strange: I added a context processor to > my project, but it's not being used when I run the project by >

TEMPLATE_CONTEXT_PROCESSORS and testserver

2010-10-12 Thread diogobaeder
Hi there, I've being noticing something strange: I added a context processor to my project, but it's not being used when I run the project by "manage.py testserver". Why that? Did I do something wrong? When I run it in "runserver", it's working alright. Thanks! -- You received this message

Re: TEMPLATE_CONTEXT_PROCESSORS doesn't seem to be present in settings.py by default

2010-09-09 Thread Sandip Bhattacharya
I don't see this variable in > any of the projects that I am creating. > > The doc > (http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_CONTEXT_PROCESSORS) > makes it seem as if this is pre-populated by default. > >    $ python -c 'import django;print django.V

TEMPLATE_CONTEXT_PROCESSORS doesn't seem to be present in settings.py by default

2010-09-09 Thread Sandip Bhattacharya
Is this variable supposed to be present in default generation of settings.py after a startproject? Because I don't see this variable in any of the projects that I am creating. The doc (http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_CONTEXT_PROCESSORS) makes it seem

Re: template_context_processors

2010-05-19 Thread stefan
Hi, I have this issue too :) On May 17, 1:00 pm, stefan wrote: > Hello, > > I have this issue, I am using the development Django version (checked > out from svn). I use a template_context_processor and sometimes the > context_processor is processedtwice, > one for the

template_context_processors

2010-05-17 Thread stefan
Hello, I have this issue, I am using the development Django version (checked out from svn). I use a template_context_processor and sometimes the context_processor is processed twice, one for the current request and one for the referring/previous request. I know this because I am using logging

TEMPLATE_CONTEXT_PROCESSORS and request context in django.contrib.auth.views

2008-06-04 Thread [EMAIL PROTECTED]
I'm using django.contrib.auth.views for user management like login wrapped in my own views for example: @login_required def password_change(request): return django.contrib.auth.views.password_change(request, template_name='userpanel/password_change.html') But my template context

Re: TEMPLATE_CONTEXT_PROCESSORS

2006-07-30 Thread Rares Vernica
FO in templates. >> >> The problem is that TEMPLATE_CONTEXT_PROCESSORS does not seem to make >> any difference. request is still not accessible from template. Even is >> I >> set the variable to () nothing happens. > > As far as I know, the TEMPLATE_CONTEXT_PRO

Re: TEMPLATE_CONTEXT_PROCESSORS

2006-07-24 Thread Ian Clelland
On 7/24/06, Rares Vernica <[EMAIL PROTECTED]> wrote: > The goal is to have request.META.PATH_INFO in templates. > > The problem is that TEMPLATE_CONTEXT_PROCESSORS does not seem to make > any difference. request is still not accessible from template. Even is > I > set th

TEMPLATE_CONTEXT_PROCESSORS

2006-07-24 Thread Rares Vernica
Hi, I added this to my settings.py: TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.request', 'django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', ) I took it from the second comment from here

Re: TEMPLATE_CONTEXT_PROCESSORS confusion

2006-06-10 Thread James Bennett
On 6/10/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Is there a list of attributes for an HttpRequest object somewhere? http://www.djangoproject.com/documentation/request_response/ -- "May the forces of evil become confused on the way to your house." -- George Carlin

Re: TEMPLATE_CONTEXT_PROCESSORS confusion

2006-06-10 Thread Todd O'Bryan
On Jun 10, 2006, at 12:32 PM, Luke Plant wrote: > > On Saturday 10 June 2006 16:40, Todd O'Bryan wrote: > >> so I'd like to add userinfo to the context by default. To do that, >> I've figured out that I need to add my own function to >> TEMPLATE_CONTEXT_PROCESSORS, bu

Re: TEMPLATE_CONTEXT_PROCESSORS confusion

2006-06-10 Thread Luke Plant
On Saturday 10 June 2006 16:40, Todd O'Bryan wrote: > so I'd like to add userinfo to the context by default. To do that, > I've figured out that I need to add my own function to > TEMPLATE_CONTEXT_PROCESSORS, but I'm a little confused how to get the > currently logged in user