On Wednesday 03 Feb 2010 10:09:44 am Russell Keith-Magee wrote:
> > Exception Type: NameError at /
> > Exception Value: global name 'query' is not defined
> 
> This isn't the same problem that you originally reported. This
> particular problem was logged as #12732, and fixed in [12359].

this problem occurs for me from the reported revision and is still occuring 
with the latest svn - 12377, and as I said the error messages differ depending 
on the page loaded. I have copied the error message occuring in latest svn 
using the test setup which I have posted in another post on this thread.
> 
> I would also note that you previously said that the problem was
> between [12200] and [12300] - why are you reporting [12352] as the
> problem revision?
> 

yesterday I was in panic mode - I kept going downwards until I got a revision 
that worked - which was 12200. 12300 did not work, but I did not test it 
thoroughly. Today, on thorough testing of 12300, it did work, and I zeroed in 
on 12352. I have not tested all the revisions between 12352 and current trunk, 
but all those I have tested did not work. The traceback on admin for my test 
site is here:

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/admin/
Django Version: 1.2 alpha 1 SVN-12377
Python Version: 2.6.0
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.admin',
 'csrftest.web']
Installed Middleware:
('django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/lib/python2.6/django/core/handlers/base.py" in get_response
  101.                     response = callback(request, *callback_args, 
**callback_kwargs)
File "/usr/lib/python2.6/django/contrib/admin/sites.py" in wrapper
  206.                 return self.admin_view(view, cacheable)(*args, 
**kwargs)
File "/usr/lib/python2.6/django/utils/decorators.py" in __call__
  36.         return self.decorator(self.func)(*args, **kwargs)
File "/usr/lib/python2.6/django/utils/decorators.py" in _wrapped_view
  86.                     response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.6/django/utils/decorators.py" in __call__
  36.         return self.decorator(self.func)(*args, **kwargs)
File "/usr/lib/python2.6/django/views/decorators/cache.py" in 
_wrapped_view_func
  70.         response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.6/django/contrib/admin/sites.py" in inner
  188.             if not self.has_permission(request):
File "/usr/lib/python2.6/django/contrib/admin/sites.py" in has_permission
  145.         return request.user.is_active and request.user.is_staff
File "/usr/lib/python2.6/django/contrib/auth/middleware.py" in __get__
  9.             request._cached_user = get_user(request)
File "/usr/lib/python2.6/django/contrib/auth/__init__.py" in get_user
  97.         user_id = request.session[SESSION_KEY]
File "/usr/lib/python2.6/django/contrib/sessions/backends/base.py" in 
__getitem__
  46.         return self._session[key]
File "/usr/lib/python2.6/django/contrib/sessions/backends/base.py" in 
_get_session
  172.                 self._session_cache = self.load()
File "/usr/lib/python2.6/django/contrib/sessions/backends/db.py" in load
  21.                 expire_date__gt=datetime.datetime.now()
File "/usr/lib/python2.6/django/db/models/manager.py" in get
  132.         return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.6/django/db/models/query.py" in get
  334.         num = len(clone)
File "/usr/lib/python2.6/django/db/models/query.py" in __len__
  79.                 self._result_cache = list(self.iterator())
File "/usr/lib/python2.6/django/db/models/query.py" in iterator
  267.         for row in compiler.results_iter():
File "/usr/lib/python2.6/django/db/models/sql/compiler.py" in results_iter
  685.         for rows in self.execute_sql(MULTI):
File "/usr/lib/python2.6/django/db/models/sql/compiler.py" in execute_sql
  740.         cursor.execute(sql, params)
File "/usr/lib/python2.6/django/db/backends/util.py" in execute
  19.             return self.cursor.execute(sql, params)
File "/usr/lib/python2.6/django/db/backends/postgresql/base.py" in execute
  57.             return self.cursor.execute(sql, params)

Exception Type: DatabaseError at /admin/
Exception Value: ERROR:  syntax error at or near "11"
LINE 1: ...  AND "django_session"."expire_date" > 2010-02-03 11:10:34.2...
                                                             ^

SELECT "django_session"."session_key", "django_session"."session_data", 
"django_session"."expire_date" FROM "django_session" WHERE 
("django_session"."session_key" = '7590eb0f5db8bf2ff3c84374b4aa1fb7'  AND 
"django_session"."expire_date" > 2010-02-03 11:10:34.298195 )


-- 
regards
Kenneth Gonsalves
Senior Project Officer
NRC-FOSS
http://nrcfosshelpline.in/web/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to