Server error/Template Context processors

2007-11-06 Thread Ryan K
Hi. When there is a server error (error 500 returns) the template context processors don't seem to be doing anything (not passed to the template). I have this template context processor: import llcom.settings def site_context(request): """ Add URL prefixes from settings file to request cont

Server error/Template Context processors

2007-11-06 Thread Ryan K
Hi. When there is a server error (error 500 returns) the template context processors don't seem to be doing anything (not passed to the template). I have this template context processor: import llcom.settings def site_context(request): """ Add URL prefixes from settings file to request cont

Re: Error Template

2007-01-05 Thread Lawrence Oluyede
Sorry I forgot to specify a thing. The thing is to play with django on the console you need an actual application to poke with. In order to Django to know how to deal with that you have to tell it where resides the settings.py of your app so you can play with its model and so on. "python manage.

Re: Error Template

2007-01-05 Thread Jose Federico Muñoz Rubio
I try but : [EMAIL PROTECTED]:~/iti$ export DJANGO_SETTINGS_MODULE=. [EMAIL PROTECTED]:~/iti$ python Python 2.4.4c1 (#2, Oct 11 2006, 20:00:03) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from djan

Re: Error Template

2007-01-05 Thread Lawrence Oluyede
raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) EnvironmentError: Could not import settings 'iti.settings' (Is it on sys.path? Does it have syntax errors?): No module named iti.settings AFAIK that's

Error Template

2007-01-05 Thread Jose Federico Muñoz Rubio
Hi, I read DJANGO BOOK and Chapter 4: The Django template system. I read Creating template objects and : #python Python 2.4.4c1 (#2, Oct 11 2006, 20:00:03) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >