Jump to content

[Solved] Django admin issues


stanlly

Recommended Posts

Seems that there are some issues with admin interface for django projects. I have created plain new project just with admin interface and works fine on same version on another server. Also dispatching and redirection works. Could you please provide detailed dispatch error log corresponding to those errors:

[Wed Mar 03 23:26:03 2010] [error] [client 58.52.15.223]   File "/home/stanlly/public_html/dispatch.wsgi", line 15, in application
[Wed Mar 03 23:26:03 2010] [error] [client 58.52.15.223] mod_wsgi (pid=15587): Exception occurred processing WSGI script '/home/stanlly/public_html/dispatch.wsgi'

Link to comment
Share on other sites

Done. But since we are in different time zones doubt it will help. Anyway you can do it yourself just hit 'http://vnitrnituristika.cz/admin/' will generate 500 and exception, observing tail of dispatch log should give detailed python traceback. Thank you very much for your effort.

Link to comment
Share on other sites

[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154] mod_wsgi (pid=3709): Exception occurred processing WSGI script '/home/stanlly/public_html/dispatch.wsgi'.
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154] Traceback (most recent call last):
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/home/stanlly/public_html/dispatch.wsgi", line 15, in application
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     return _application(environ, start_response)
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 245, in __call__
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     response = middleware_method(request, response)
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/contrib/sessions/middleware.py", line 36, in process_response
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     request.session.save()
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/db.py", line 51, in save
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     obj = Session(
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/base.py", line 152, in _get_session_key
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     self._session_key = self._get_new_session_key()
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/base.py", line 144, in _get_new_session_key
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     if not self.exists(session_key):
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/db.py", line 25, in exists
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     Session.objects.get(session_key=session_key)
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/models/manager.py", line 120, in get
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     return self.get_query_set().get(*args, **kwargs)
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 300, in get
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     num = len(clone)
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 81, in __len__
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     self._result_cache = list(self.iterator())
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 238, in iterator
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     for row in self.query.results_iter():
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/models/sql/query.py", line 287, in results_iter
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     for rows in self.execute_sql(MULTI):
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/models/sql/query.py", line 2368, in execute_sql
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     cursor = self.connection.cursor()
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/backends/__init__.py", line 81, in cursor
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     cursor = self._cursor()
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]   File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/base.py", line 170, in _cursor
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154]     self.connection = Database.connect(**kwargs)
[Mon Mar 08 12:40:53 2010] [error] [client 69.91.143.154] OperationalError: unable to open database file

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...