2009/12/12 newpublic <newpubli...@gmail.com>: > when migrate djange from ubuntu 910 to fedora 12, there are so much > trouble ...... > #- - > > ====== > error information: > > Traceback (most recent call > last): > File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line > 1537, in HandlerDispatch\n default=default_handler, arg=req, > silent=hlist.silent) > File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line > 1229, in _process_target\n result = _execute_target(config, req, > object, arg) > File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line > 1128, in _execute_target\n result = object(arg) > File "/usr/lib/python2.6/site-packages/django/core/handlers/ > modpython.py", line 228, in handler\n return ModPythonHandler() > (req) > File "/usr/lib/python2.6/site-packages/django/core/handlers/ > modpython.py", line 205, in __call__\n response = middleware_method > (request, response) > File "/usr/lib/python2.6/site-packages/django/contrib/sessions/ > middleware.py", line 36, in process_response\n request.session.save > () > File "/usr/lib/python2.6/site-packages/django/contrib/sessions/ > backends/db.py", line 52, in save\n session_key = self.session_key, > File "/usr/lib/python2.6/site-packages/django/contrib/sessions/ > backends/base.py", line 152, in _get_session_key\n > self._session_key = self._get_new_session_key() > File "/usr/lib/python2.6/site-packages/django/contrib/sessions/ > backends/base.py", line 144, in _get_new_session_key\n if not > self.exists(session_key): > File "/usr/lib/python2.6/site-packages/django/contrib/sessions/ > backends/db.py", line 25, in exists\n Session.objects.get > (session_key=session_key) > File "/usr/lib/python2.6/site-packages/django/db/models/manager.py", > line 120, in get\n return self.get_query_set().get(*args, **kwargs) > File "/usr/lib/python2.6/site-packages/django/db/models/query.py", > line 300, in get\n num = len(clone) > File "/usr/lib/python2.6/site-packages/django/db/models/query.py", > line 81, in __len__\n self._result_cache = list(self.iterator()) > File "/usr/lib/python2.6/site-packages/django/db/models/query.py", > line 238, in iterator\n for row in self.query.results_iter(): > File "/usr/lib/python2.6/site-packages/django/db/models/sql/ > query.py", line 287, in results_iter\n for rows in self.execute_sql > (MULTI): > File "/usr/lib/python2.6/site-packages/django/db/models/sql/ > query.py", line 2369, in execute_sql\n cursor.execute(sql, params) > File "/usr/lib/python2.6/site-packages/django/db/backends/util.py", > line 19, in execute\n return self.cursor.execute(sql, params) > ProgrammingError: relation "django_session" does not exist\nLINE > 1: ...ession_data", "django_session"."expire_date" FROM "django_se... > \n > > > ====== > OS: Fedora 12 i386 ( base system <only console> ) > Linux constantine 2.6.31.5-127.fc12.i686.PAE #1 SMP i686 i386 GNU/ > Linux > > apache: httpd 2.2 > django.VERSION = (1, 1, 0, 'final', 0) > postgresql, postgresql_psycopg2 > mod_python/3.3.1 Python/2.6.2 > > -- >
My first guess would be that you did not setup your database correctly. Have you run "syncdb" or restored your database dump back after migrating to Fedora? Davor -- 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.