Dear ALL,

i am using apache and mod_wsgi and its working fine and when i try to
start the admin interface i get this ::

DatabaseError at /admin/

no such table: django_session

Request Method:         GET
Request URL:    http://localhost:8080/mysite/admin/
Django Version:         1.3.1
Exception Type:         DatabaseError
Exception Value:

no such table: django_session

Exception Location:     C:\Python27\lib\site-packages\django\db\backends
\sqlite3\base.py in execute, line 234
Python Executable:      C:\Program Files (x86)\Apache Software Foundation
\Apache2.2\bin\httpd.exe
Python Version:         2.7.2
Python Path:

['C:\\WINDOWS\\system32\\python27.zip',
 'C:\\Python27\\Lib',
 'C:\\Python27\\DLLs',
 'C:\\Python27\\Lib\\lib-tk',
 'C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2',
 'C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\
\bin',
 'C:\\Python27',
 'C:\\Python27\\lib\\site-packages',
 'c:\\']

Server time:    Wed, 4 Jan 2012 17:08:37 +0200




THIS IS THE TRACEBACK :

Environment:


Request Method: GET
Request URL: http://localhost:8080/mysite/admin/

Django Version: 1.3.1
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in
get_response
  178.                 response = middleware_method(request, response)
File "C:\Python27\lib\site-packages\django\contrib\sessions
\middleware.py" in process_response
  36.                 request.session.save()
File "C:\Python27\lib\site-packages\django\contrib\sessions\backends
\db.py" in save
  56.             session_key = self.session_key,
File "C:\Python27\lib\site-packages\django\contrib\sessions\backends
\base.py" in _get_session_key
  175.             self._session_key = self._get_new_session_key()
File "C:\Python27\lib\site-packages\django\contrib\sessions\backends
\base.py" in _get_new_session_key
  167.             if not self.exists(session_key):
File "C:\Python27\lib\site-packages\django\contrib\sessions\backends
\db.py" in exists
  29.             Session.objects.get(session_key=session_key)
File "C:\Python27\lib\site-packages\django\db\models\manager.py" in
get
  132.         return self.get_query_set().get(*args, **kwargs)
File "C:\Python27\lib\site-packages\django\db\models\query.py" in get
  344.         num = len(clone)
File "C:\Python27\lib\site-packages\django\db\models\query.py" in
__len__
  82.                 self._result_cache = list(self.iterator())
File "C:\Python27\lib\site-packages\django\db\models\query.py" in
iterator
  273.         for row in compiler.results_iter():
File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py"
in results_iter
  680.         for rows in self.execute_sql(MULTI):
File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py"
in execute_sql
  735.         cursor.execute(sql, params)
File "C:\Python27\lib\site-packages\django\db\backends\util.py" in
execute
  34.             return self.cursor.execute(sql, params)
File "C:\Python27\lib\site-packages\django\db\backends
\sqlite3\base.py" in execute
  234.             return Database.Cursor.execute(self, query, params)

Exception Type: DatabaseError at /admin/
Exception Value: no such table: django_session



what to do guys ?! what is the problem , i did python manage.py syncdb
and it created the django_session table , why isnt it working ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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