On Jan 6, 7:51 pm, Mike <[email protected]> wrote:
> I am a newb to a this so please keep that in mind when reading this.
> I am running Ubuntu 9.10, postgreSQL 8.4, psycopg2, Django 1.1.1, and
> Apache 2.2.  Everything works fine until I go to authenticate then I
> get an error.  I am trying to get the authentication piece to work by
> using the canned template and I get the following traceback:
>
> [Wed Jan 06 11:33:12 2010] [notice] caught SIGTERM, shutting down
> [Wed Jan 06 11:33:13 2010] [warn] mod_wsgi: Compiled for Python/2.6.2.
> [Wed Jan 06 11:33:13 2010] [warn] mod_wsgi: Runtime using Python/
> 2.6.4.
> [Wed Jan 06 11:33:13 2010] [warn] mod_wsgi: Python module path '/usr/
> lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-
> tk:/usr/lib/python2.6/lib-old:/usr/lib/py$
> [Wed Jan 06 11:33:13 2010] [notice] Apache/2.2.12 (Ubuntu) PHP/
> 5.2.10-2ubuntu6.3 with Suhosin-Patch mod_wsgi/2.5 Python/2.6.4
> mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming no$
> [Wed Jan 06 11:33:16 2010] [error] mod_wsgi (pid=22889): Exception
> occurred processing WSGI script '/srv/Django/FDRAB_Intranet/apache/
> django.wsgi'.
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line
> 245, in __call__
>   response = middleware_method(request, response)
> File "/usr/lib/pymodules/python2.6/django/contrib/sessions/
> middleware.py", line 36, in process_response
>   request.session.save()
> File "/usr/lib/pymodules/python2.6/django/contrib/sessions/backends/
> db.py", line 58, in save
>   obj.save(force_insert=must_create)
> File "/usr/lib/pymodules/python2.6/django/db/models/base.py", line
> 410, in save
>   self.save_base(force_insert=force_insert, force_update=force_update)
> File "/usr/lib/pymodules/python2.6/django/db/models/base.py", line
> 470, in save_base
>   manager.filter(pk=pk_val).extra(select={'a': 1}).values('a').order_by
> ())):
> File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line
> 112, in __nonzero__
>   iter(self).next()
> File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line
> 106, in _result_iter
>   self._fill_cache()
> File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line
> 692, in _fill_cache
>   self._result_cache.append(self._iter.next())
> File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line
> 756, in iterator
>   for row in self.query.results_iter():
> File "/usr/lib/pymodules/python2.6/django/db/models/sql/query.py",
> line 287, in results_iter
>   for rows in self.execute_sql(MULTI):
> File "/usr/lib/pymodules/python2.6/django/db/models/sql/query.py",
> line 2369, in execute_sql
>   cursor.execute(sql, params)
> File "/usr/lib/pymodules/python2.6/django/db/backends/util.py", line
> 19, in execute
>   return self.cursor.execute(sql, params)
> ProgrammingError: relation "django_session" does not exist
> LINE 1: SELECT (1) AS "a" FROM "django_session" WHERE
> "django_sessio...
>
> The most annoying part is that Django can write to the table in other
> instances, but for some reason it fails when I try to authenticate.

Have you run ./manage.py syncdb since adding django.contrib.auth to
INSTALLED_APPS?
--
DR.
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to