Posted by Herbert Poul |
|
hmm.. i was probably wrong about that [ code ] statement :) it isn't much better.. but anyway .. good enough ;)
as for your the error.. it seems quite strange.. why does the URL resolver return the name of the views method as string instead of the function itself :( i'll have to look further into it once i'm at home (i'm currently at work) - i'll let you know when i know more :| Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
one thing:
can you try to do a ./manage.py shell from the same placey ou would run a syncdb: ./manage.py shell >>> from sphene.community.views import profile >>> profile <function profile at 0x86bcdf4> if we're "lucky" the import statement produces an error ;) Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by erikcw |
|
[root@vps journal]# ./manage.py shell Executing module body. Python 2.4.3 (#1, Aug 27 2007, 12:00:57) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from sphene.community.views import profile >>> profile <function profile at 0xb732f95c> >>> No such luck... :-(
|
|
Posted by erikcw |
|
Some news.
I just tried going to the forum, and it is now loading!! However, there are a couple issues. 1) none of the posts from the old version of sphene are showing. They are listed on the forum homepage, but when I click into the acctuall forums, the threads are gone. 2) When I try to post a new thread I get this after clicking post: TypeError at /board/post/2/ __import__() argument 1 must be string, not WSGIRequest Request Method: POST Request URL: http://journal.monkeybargym.com:8000/board/post/2/ Exception Type: TypeError Exception Value: __import__() argument 1 must be string, not WSGIRequest Exception Location: /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in _get_urlconf_module, line 251 Python Executable: /usr/local/bin/python Python Version: 2.4.3 Traceback (innermost last) Switch back to interactive view * /usr/local/lib/python2.4/site-packages/django/core/handlers/base.py in _real_get_response 74. # Apply view middleware 75. for middleware_method in self._view_middleware: 76. response = middleware_method(request, callback, callback_args, callback_kwargs) 77. if response: 78. return response 79. 80. try: 81. response = callback(request, *callback_args, **callback_kwargs) ... 82. except Exception, e: 83. # If the view raised an exception, run it through exception 84. # middleware, and if the exception middleware returns a 85. # response, use that. Otherwise, reraise the exception. 86. for middleware_method in self._exception_middleware: 87. response = middleware_method(request, e) ▶ Local vars Variable Value callback <function post at 0xb6803534> callback_args () callback_kwargs {'category_id': u'2', 'group': <Group: journal>} debug <module 'django.views.debug' from '/usr/local/lib/python2.4/site-packages/django/views/debug.pyc'> e <exceptions.TypeError instance at 0xb65cafac> exceptions <module 'django.core.exceptions' from '/usr/local/lib/python2.4/site-packages/django/core/exceptions.pyc'> mail_admins <function mail_admins at 0xb6a5f02c> middleware_method <bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0xb69de78c>> request <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'category': [u'2'], u'body': [u'test'], u'choicesPerUser': [u'1'], u'question': [u''], u'answers': [u''], u'addmonitor': [u'1'], u'subject': [u'test']}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '82', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/post/2/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/post/2/', 'PWD': '/root/journal', 'QUERY_STRING': '', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB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[19;2~:kb=^H:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb75626bc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr resolver <RegexURLResolver journal.urls ^/> response None self <django.core.handlers.wsgi.WSGIHandler object at 0xb6a9802c> settings <django.conf.LazySettings object at 0xb7c9988c> urlconf u'journal.urls' urlresolvers <module 'django.core.urlresolvers' from '/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.pyc'> * /root/journal/communitytools/sphenecoll/sphene/sphboard/views.py in post 247. 248. if request.user.is_authenticated(): 249. if post: 250. request.user.message_set.create( message = "Post edited successfully." ) 251. else: 252. request.user.message_set.create( message = "Post created successfully." ) 253. if thread == None: thread = newpost 254. return HttpResponseRedirect( thread.get_absolute_url() ) ... 255. 256. else: 257. postForm = PostForm( ) 258. pollForm = PostPollForm() 259. 260. if post: ▶ Local vars Variable Value category <Category: Bug Reports and Fixes> category_id u'2' context {'category': <Category: Bug Reports and Fixes>} data {'body': u'test', 'subject': u'test'} group <Group: journal> newpost <Post: test> pollForm <sphene.sphboard.views.PostPollForm object at 0xb65ca0ac> post None postForm <sphene.sphboard.views.PostForm object at 0xb65cae6c> post_id None request <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'category': [u'2'], u'body': [u'test'], u'choicesPerUser': [u'1'], u'question': [u''], u'answers': [u''], u'addmonitor': [u'1'], u'subject': [u'test']}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '82', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/post/2/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/post/2/', 'PWD': '/root/journal', 'QUERY_STRING': '', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#26:co#207:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL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icago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb75626bc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr thread <Post: test> * /usr/local/lib/python2.4/site-packages/django/utils/functional.py in _curried 1. def curry(_curried_func, *args, **kwargs): 2. def _curried(*moreargs, **morekwargs): 3. return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs)) ... 4. return _curried 5. 6. def memoize(func, cache, num_args): 7. """ 8. Wrap a function so that results for any argument tuple are stored in 9. 'cache'. Note that the args to the function must be usable as dictionary ▶ Local vars Variable Value _curried_func <function get_absolute_url at 0xb7650aac> args (<Options for Post>, <unbound method Post.inner>) kwargs {} moreargs (<Post: test>,) morekwargs {} * /usr/local/lib/python2.4/site-packages/django/db/models/base.py in get_absolute_url 466. return [r0 for r in cursor.fetchall()] 467. 468. ############################################## 469. # HELPER FUNCTIONS (CURRIED MODEL FUNCTIONS) # 470. ############################################## 471. 472. def get_absolute_url(opts, func, self): 473. return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self) ... ▶ Local vars Variable Value func <unbound method Post.inner> opts <Options for Post> self <Post: test> * /root/journal/communitytools/sphenecoll/sphene/community/sphpermalink.py in inner 19. if hasattr(urlconf, 'urlconf'): 20. # If type is no list, we assume it is a request object and 21. # look for a 'urlconf' attribute 22. urlconf = getattr(urlconf, 'urlconf', None) 23. 24. bits = func(*args, **kwargs) 25. viewname = bits0 26. return reverse(bits0, urlconf, *bits[1:3]) ... 27. return inner 28. 29. 30. def get_urlconf(): 31. from sphene.community.middleware import get_current_request 32. return getattr(get_current_request(), 'urlconf', None) ▶ Local vars Variable Value args (<Post: test>,) bits ('sphene.sphboard.views.showThread', (), {'groupName': u'journal', 'thread_id': 33L}) func <function get_absolute_url at 0xb6a0f33c> get_urlconf_func <function get_current_request at 0xb75a81b4> kwargs {} reverse <function reverse at 0xb75c302c> urlconf <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'category': [u'2'], u'body': [u'test'], u'choicesPerUser': [u'1'], u'question': [u''], u'answers': [u''], u'addmonitor': [u'1'], u'subject': [u'test']}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '82', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/post/2/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/post/2/', 'PWD': '/root/journal', 'QUERY_STRING': '', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H: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:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb75626bc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr viewname u'sphene.sphboard.views.showThread' * /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse 289. 290. def resolve(path, urlconf=None): 291. return get_resolver(urlconf).resolve(path) 292. 293. def reverse(viewname, urlconf=None, args=None, kwargs=None): 294. args = args or [] 295. kwargs = kwargs or {} 296. return iri_to_uri(u'/' + get_resolver(urlconf).reverse(viewname, *args, **kwargs)) ... 297. ▶ Local vars Variable Value args [] kwargs {'groupName': u'journal', 'thread_id': 33L} urlconf <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'category': [u'2'], u'body': [u'test'], u'choicesPerUser': [u'1'], u'question': [u''], u'answers': [u''], u'addmonitor': [u'1'], u'subject': [u'test']}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '82', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/post/2/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/post/2/', 'PWD': '/root/journal', 'QUERY_STRING': '', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#26:co#207:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:Z0=\\E[?3h:Z1=\\E[?3l:k0=\\E[10~:\\\n\t:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:\\\n\t:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:\\\n\t:F2=\\E[24~:F3=\\EO2P:F4=\\EO2Q:F5=\\EO2R:F6=\\EO2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=^H:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb75626bc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr viewname u'sphene.sphboard.views.showThread' * /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse 274. return self._resolve_special('500') 275. 276. def reverse(self, lookup_view, *args, **kwargs): 277. try: 278. lookup_view = get_callable(lookup_view, True) 279. except (ImportError, AttributeError): 280. raise NoReverseMatch 281. if lookup_view in self.reverse_dict: ... 282. return u''.join([reverse_helper(part.regex, *args, **kwargs) for part in self.reverse_dictlookup view]) 283. raise NoReverseMatch 284. 285. def reverse_helper(self, lookup_view, *args, **kwargs): 286. sub_match = self.reverse(lookup_view, *args, **kwargs) 287. result = reverse_helper(self.regex, *args, **kwargs) ▶ Local vars Variable Value args () kwargs {'groupName': u'journal', 'thread_id': 33L} lookup_view <function showThread at 0xb68033ac> self <RegexURLResolver <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'category': [u'2'], u'body': [u'test'], u'choicesPerUser': [u'1'], u'question': [u''], u'answers': [u''], u'addmonitor': [u'1'], u'subject': [u'test']}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '82', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/post/2/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/post/2/', 'PWD': '/root/journal', 'QUERY_STRING': '', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E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\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb75626bc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> ^/> softbr * /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in _get_reverse_dict 208. self.default_kwargs = default_kwargs or {} 209. self._reverse_dict = {} 210. 211. def __repr__(self): 212. return '<%s %s %s>' % (self.__class__.__name__, self.urlconf_name, self.regex.pattern) 213. 214. def _get_reverse_dict(self): 215. if not self._reverse_dict and hasattr(self.urlconf_module, 'urlpatterns'): ... 216. for pattern in reversed(self.urlconf_module.urlpatterns): 217. if isinstance(pattern, RegexURLResolver): 218. for key, value in pattern.reverse_dict.iteritems(): 219. self._reverse_dictkey = (pattern,) + value 220. else: 221. self._reverse_dict[pattern.callback] = (pattern,) ▶ Local vars Variable Value self <RegexURLResolver <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'category': [u'2'], u'body': [u'test'], u'choicesPerUser': [u'1'], u'question': [u''], u'answers': [u''], u'addmonitor': [u'1'], u'subject': [u'test']}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '82', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/post/2/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/post/2/', 'PWD': '/root/journal', 'QUERY_STRING': '', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#26:co#207:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:Z0=\\E[?3h:Z1=\\E[?3l:k0=\\E[10~:\\\n\t:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:\\\n\t:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:\\\n\t:F2=\\E[24~:F3=\\EO2P:F4=\\EO2Q:F5=\\EO2R:F6=\\EO2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=^H:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb75626bc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> ^/> softbr * /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in _get_urlconf_module 244. raise Resolver404, {'tried': tried, 'path': new_path} 245. 246. def _get_urlconf_module(self): 247. try: 248. return self._urlconf_module 249. except AttributeError: 250. try: 251. self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) ... 252. except ValueError, e: 253. # Invalid urlconf_name, such as "foo.bar." (note trailing period) 254. raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e) 255. return self._urlconf_module 256. urlconf_module = property(_get_urlconf_module) 257. ▶ Local vars Variable Value self <RegexURLResolver <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'category': [u'2'], u'body': [u'test'], u'choicesPerUser': [u'1'], u'question': [u''], u'answers': [u''], u'addmonitor': [u'1'], u'subject': [u'test']}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '82', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/post/2/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/post/2/', 'PWD': '/root/journal', 'QUERY_STRING': '', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E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=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb75626bc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> ^/> softbr Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in _real_get_response 81. response = callback(request, *callback_args, **callback_kwargs) File "/root/journal/communitytools/sphenecoll/sphene/sphboard/views.py" in post 254. return HttpResponseRedirect( thread.get_absolute_url() ) File "/usr/local/lib/python2.4/site-packages/django/utils/functional.py" in _curried 3. return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs)) File "/usr/local/lib/python2.4/site-packages/django/db/models/base.py" in get_absolute_url 473. return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self) File "/root/journal/communitytools/sphenecoll/sphene/community/sphpermalink.py" in inner 26. return reverse(bits0, urlconf, *bits[1:3]) File "/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py" in reverse 296. return iri_to_uri(u'/' + get_resolver(urlconf).reverse(viewname, *args, **kwargs)) File "/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py" in reverse 281. if lookup_view in self.reverse_dict: File "/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py" in _get_reverse_dict 215. if not self._reverse_dict and hasattr(self.urlconf_module, 'urlpatterns'): File "/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py" in _get_urlconf_module 251. self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) TypeError at /board/post/2/ __import__() argument 1 must be string, not WSGIRequest /community/profile/3/ now seems to be working. Clicking on a thread at /board/show/0/ gives this error: DoesNotExist at /board/thread/11/ ThreadInformation matching query does not exist. Request Method: GET Request URL: http://journal.monkeybargym.com:8000/board/thread/11/ Exception Type: DoesNotExist Exception Value: ThreadInformation matching query does not exist. Exception Location: /usr/local/lib/python2.4/site-packages/django/db/models/query.py in get, line 263 Python Executable: /usr/local/bin/python Python Version: 2.4.3 Traceback (innermost last) Switch back to interactive view * /usr/local/lib/python2.4/site-packages/django/core/handlers/base.py in _real_get_response 74. # Apply view middleware 75. for middleware_method in self._view_middleware: 76. response = middleware_method(request, callback, callback_args, callback_kwargs) 77. if response: 78. return response 79. 80. try: 81. response = callback(request, *callback_args, **callback_kwargs) ... 82. except Exception, e: 83. # If the view raised an exception, run it through exception 84. # middleware, and if the exception middleware returns a 85. # response, use that. Otherwise, reraise the exception. 86. for middleware_method in self._exception_middleware: 87. response = middleware_method(request, e) ▶ Local vars Variable Value callback <function showThread at 0xb68033ac> callback_args () callback_kwargs {'group': <Group: journal>, 'thread_id': u'11'} debug <module 'django.views.debug' from '/usr/local/lib/python2.4/site-packages/django/views/debug.pyc'> e <django.db.models.base.DoesNotExist instance at 0xb65c70ec> exceptions <module 'django.core.exceptions' from '/usr/local/lib/python2.4/site-packages/django/core/exceptions.pyc'> mail_admins <function mail_admins at 0xb6a5f02c> middleware_method <bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0xb69de78c>> request <WSGIRequest GET:<QueryDict: {u'page': [u'']}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/show/0/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/thread/11/', 'PWD': '/root/journal', 'QUERY_STRING': 'page=', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#26:co#207:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:Z0=\\E[?3h:Z1=\\E[?3l:k0=\\E[10~:\\\n\t:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:\\\n\t:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:\\\n\t:F2=\\E[24~:F3=\\EO2P:F4=\\EO2Q:F5=\\EO2R:F6=\\EO2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=^H:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb67dedf4>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr resolver <RegexURLResolver journal.urls ^/> response None self <django.core.handlers.wsgi.WSGIHandler object at 0xb6a9802c> settings <django.conf.LazySettings object at 0xb7c9988c> urlconf u'journal.urls' urlresolvers <module 'django.core.urlresolvers' from '/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.pyc'> * /root/journal/communitytools/sphenecoll/sphene/sphboard/views.py in showThread 97. res.sph_lastmodified = True 98. return res 99. 100. def showThread(request, thread_id, group = None): 101. thread = Post.objects.filter( pk = thread_id ).get() 102. if not thread.category.has_view_permission(request.user): 103. raise PermissionDenied() 104. thread.viewed( request.session, request.user ) ... 105. #thread = get_object_or_404(Post, pk = thread_id ) 106. 107. sphdata = get_current_sphdata() 108. if sphdata != None: sphdata['subtitle'] = thread.subject 109. 110. res = object_list( request = request, ▶ Local vars Variable Value group <Group: journal> request <WSGIRequest GET:<QueryDict: {u'page': [u'']}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': '925f10c86eb36806c9945cfdbf827662'}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'journal.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'HOME': '/root', 'HOSTNAME': 'vps.monkeybargym.com', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://journal.monkeybargym.com:8000/board/show/0/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)', 'INPUTRC': '/etc/inputrc', 'LANG': 'C', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'LOGNAME': 'root', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:', 'MAIL': '/var/spool/mail/root', 'MANPATH': '/usr/lib/courier-imap/man:', 'PATH': '/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin', 'PATH_INFO': '/board/thread/11/', 'PWD': '/root/journal', 'QUERY_STRING': 'page=', 'REMOTE_ADDR': '76.109.247.149', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'vps.monkeybargym.com', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL': '/bin/bash', 'SHLVL': '2', 'SSH_CLIENT': '76.109.247.149 36853 22', 'SSH_CONNECTION': '76.109.247.149 36853 207.58.180.175 22', 'SSH_TTY': '/dev/pts/0', 'STY': '11525.pts-0.vps', 'TERM': 'screen', 'TERMCAP': 'SC|screen|VT 100/ANSI X3.64 vir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17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=^H:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'TZ': 'America/Chicago', 'USER': 'root', 'WINDOW': '0', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7d6c0b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0xb67dedf4>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr thread <Post: Does anyone want to try an online "challenge"?> thread_id u'11' * /root/journal/communitytools/sphenecoll/sphene/sphboard/models.py in viewed 577. signature = get_rendered_signature( self.author_id ) 578. if signature: 579. bodyhtml += '<div class="signature">%s</div>' % signature 580. return bodyhtml 581. 582. def viewed(self, session, user): 583. if get_sph_setting( 'board_count_views' ): 584. threadinfo = self.get_threadinformation() ... 585. threadinfo.view_count += 1 586. threadinfo.save() 587. self.touch(session, user) 588. 589. def touch(self, session, user): 590. return self._touch( session, user ) ▶ Local vars Variable Value self <Post: Does anyone want to try an online "challenge"?> session <django.contrib.sessions.backends.db.SessionStore object at 0xb67d6bac> user <User: root> * /root/journal/communitytools/sphenecoll/sphene/sphboard/models.py in get_threadinformation 447. else: self.status = self.status ^ POST_STATUS_ANNOTATED 448. 449. def get_thread(self): 450. if self.thread == None: return self; 451. return self.thread; 452. 453. def get_threadinformation(self): 454. return ThreadInformation.objects.type_default().get( root_post = self.get_thread() ) ... 455. 456. def get_latest_post(self): 457. return self.get_all_posts().latest( 'postdate' ) 458. 459. def get_all_posts(self): 460. return Post.objects.filter( Q( pk = self.id ) | Q( thread = self ) ) ▶ Local vars Variable Value self <Post: Does anyone want to try an online "challenge"?> * /usr/local/lib/python2.4/site-packages/django/db/models/query.py in get 256. "Performs the SELECT and returns a single object matching the given keyword arguments." 257. clone = self.filter(*args, **kwargs) 258. # clean up SQL by removing unneeded ORDER BY 259. if not clone._order_by: 260. clone._order_by = () 261. obj_list = list(clone) 262. if len(obj_list) < 1: 263. raise self.model.DoesNotExist, "%s matching query does not exist." % self.model._meta.object_name ... 264. assert len(obj_list) == 1, "get() returned more than one %s -- it returned %s! Lookup parameters were %s" % (self.model._meta.object_name, len(obj_list), kwargs) 265. return obj_list0 266. 267. def create(self, **kwargs): 268. """ 269. Create a new object with the given kwargs, saving it to the database ▶ Local vars Variable Value args () clone [] kwargs {'root_post': <Post: Does anyone want to try an online "challenge"?>} obj_list [] self [<ThreadInformation: ThreadInformation object>, <ThreadInformation: ThreadInformation object>] Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in _real_get_response 81. response = callback(request, *callback_args, **callback_kwargs) File "/root/journal/communitytools/sphenecoll/sphene/sphboard/views.py" in showThread 104. thread.viewed( request.session, request.user ) File "/root/journal/communitytools/sphenecoll/sphene/sphboard/models.py" in viewed 584. threadinfo = self.get_threadinformation() File "/root/journal/communitytools/sphenecoll/sphene/sphboard/models.py" in get_threadinformation 454. return ThreadInformation.objects.type_default().get( root_post = self.get_thread() ) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py" in get 263. raise self.model.DoesNotExist, "%s matching query does not exist." % self.model._meta.object_name DoesNotExist at /board/thread/11/ ThreadInformation matching query does not exist. Looks like progress thought! |
|
Posted by Herbert Poul |
|
Weird, what did you change ?
This looks good ! In the new SCT version a new model was added '\ThreadInformation' which caches information from threads for performance reasons .. this "cache" needs to be regenerated (imo this should also happen at syncdb ..) try to run this command: echo -e "from sphene.community.signals import trigger_maintenancentrigger_maintenance()" | ./manage.py shell --plain from within your project .. (this should actually be run e.g. once a day - it also recalculates the "heat" of the threads) --- Last Edited by Herbert Poul at 2007-10-24 18:00:57 --- Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by erikcw |
|
I get this when running it:
[root@vps journal]# echo -e "from sphene.community.signals import trigger_maintenancentrigger_maintenance()" | ./manage.py shell --plain Executing module body. Python 2.4.3 (#1, Aug 27 2007, 12:00:57) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) File "<console>", line 1 from sphene.community.signals import trigger_maintenancentrigger_maintenance() ^ SyntaxError: invalid syntax >>> >>> [root@vps journal]# |
|
Posted by Herbert Poul |
|
ooops ... the \n disappeared somewhere...
correct is: echo -e "from sphene.community.signals import trigger_maintenance\ntrigger_maintenance()" | ./manage.py shell --plain Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by erikcw |
|
That ran without error, but....
Still no change. I get the same error after click post. The post does seem to make it into the db however. It is listed in the forum. When I click on it, the page just refreshes. The old posts are still not showing either. :-( |
|
Posted by Herbert Poul |
|
hmm.. weird.. ok .. let's try something against the posting error..
try to update from SCT's SVN trunk.. it should at least give you a new version of 'sphpermalink.py' as for the other problem.. can you look into the table sphboard_threadinformation how many entries it contains ? Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by erikcw |
|
I updated from trunk.
sphboard_threadinformation has 3 rows. (probably from the 3 test posts I've made) The permalinks are now pointing to real URLs, but when I click, I get this: ProgrammingError at /board/thread/34/ (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") Request Method: GET Request URL: http://journal.monkeybargym.com:8000/board/thread/34/ Exception Type: ProgrammingError Exception Value: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") Exception Location: /usr/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-linux-i686.egg/MySQLdb/connections.py in defaulterrorhandler, line 35 Python Executable: /usr/local/bin/python Python Version: 2.4.3 Template error In template /root/journal/communitytools/sphenecoll/templates/sphene/sphboard/showThread.html, error at line 65 Caught an exception while rendering: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") 55 {% else %} 56 You are currently receiving email notifications on new posts because you subscribed to a parent category. 57 {% endif %} 58 {% else %} 59 <a href="../../togglemonitor_thread/{{ thread.id }}/">Notify me by email on new posts.</a> 60 {% endif %} 61 <br/><br/> 62 {% endif %} 63 {% sphboard_pagination pages page %}<br/><br/> 64 <table class="sphboard_post_list"> 65 {% for post in post_list %} 66 <tr> 67 <td rowspan="2" class="sphboard_post_authorinfo"> 68 {% sphboard_post_authorinfo post.author_id %} 69 </td> 70 <td class="sphboard_post_subject"> 71 <div style="float:left"><a name="{{ post.id }}"></a>{{ post.postdate|date:"Y-m-d H:i:s" }} - <strong>{{ post.subject|escape }}</strong></div> 72 <div style="float:right"> 73 {% if post.allow_annotating %} 74 [ <a href="{{ post.get_absolute_annotate_url }}">Annotate/Hide</a> ] 75 {% endif %} Traceback (innermost last) Switch to copy-and-paste view * /usr/local/lib/python2.4/site-packages/django/template/__init__.py in render_node 803. 804. def render_node(self, node, context): 805. return node.render(context) 806. 807. class DebugNodeList(NodeList): 808. def render_node(self, node, context): 809. try: 810. result = node.render(context) ... 811. except TemplateSyntaxError, e: 812. if not hasattr(e, 'source'): 813. e.source = node.source 814. raise 815. except Exception, e: 816. from sys import exc_info ▶ Local vars Variable Value context Error in formatting: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") e <_mysql_exceptions.ProgrammingError instance at 0xb5ba10ec> exc_info <built-in function exc_info> node <For Node: for post in post_list, tail_len: 19> self [<Text Node: '\n '>, <django.template.InclusionNode object at 0xb684a9ec>, <Text Node: '\n <br/>\n '>, <If node>, <Text Node: '\n <br/>\n '>, <If node>, <Text Node: '\n '>, <django.template.InclusionNode object at 0xb5b343ac>, <Text Node: '<br/><br/>\n <table class'>, <For Node: for post in post_list, tail_len: 19>, <Text Node: '\n </table>\n <br/><br/>\n'>, <django.template.InclusionNode object at 0xb5b98c6c>, <Text Node: '<br/><br/>\n <br/><br/>\n '>, <If node>, <Text Node: '\n <br/><br/>\n'>] wrapped <django.template.TemplateSyntaxError instance at 0xb5bb392c> * /usr/local/lib/python2.4/site-packages/django/template/defaulttags.py in render 105. values = self.sequence.resolve(context, True) 106. except VariableDoesNotExist: 107. values = [] 108. if values is None: 109. values = [] 110. if not hasattr(values, '__len__'): 111. values = list(values) 112. len_values = len(values) ... 113. if self.reversed: 114. values = reversed(values) 115. unpack = len(self.loopvars) > 1 116. for i, item in enumerate(values): 117. context['forloop'] = { 118. # shortcuts for current loop iteration number ▶ Local vars Variable Value context Error in formatting: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") nodelist [] parentloop {} self <For Node: for post in post_list, tail_len: 19> values Error in formatting: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") * /usr/local/lib/python2.4/site-packages/django/db/models/query.py in __len__ 104. # PYTHON MAGIC METHODS # 105. ######################## 106. 107. def __repr__(self): 108. return repr(self._get_data()) 109. 110. def __len__(self): 111. return len(self._get_data()) ... 112. 113. def __iter__(self): 114. return iter(self._get_data()) 115. 116. def __getitem__(self, k): 117. "Retrieve an item or slice from the set of results." ▶ Local vars Variable Value self Error in formatting: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") * /usr/local/lib/python2.4/site-packages/django/db/models/query.py in _get_data 475. if (self._order_by is not None and len(self._order_by) > 0) and \ 476. (combined._order_by is None or len(combined._order_by) == 0): 477. combined._order_by = self._order_by 478. return combined 479. 480. def _get_data(self): 481. if self._result_cache is None: 482. self._result_cache = list(self.iterator()) ... 483. return self._result_cache 484. 485. def _get_sql_clause(self): 486. qn = connection.ops.quote_name 487. opts = self.model._meta 488. ▶ Local vars Variable Value self Error in formatting: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") * /usr/local/lib/python2.4/site-packages/django/db/models/query.py in iterator 182. raise StopIteration 183. 184. # self._select is a dictionary, and dictionaries' key order is 185. # undefined, so we convert it to a list of tuples. 186. extra_select = self._select.items() 187. 188. cursor = connection.cursor() 189. cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params) ... 190. 191. fill_cache = self._select_related 192. fields = self.model._meta.fields 193. index_end = len(fields) 194. has_resolve_columns = hasattr(self, 'resolve_columns') 195. while 1: ▶ Local vars Variable Value cursor <django.db.backends.util.CursorDebugWrapper object at 0xb5b3fccc> extra_select [] params [34L, 34L] select ['`sphboard_post`.`id`', '`sphboard_post`.`status`', '`sphboard_post`.`category_id`', '`sphboard_post`.`subject`', '`sphboard_post`.`body`', '`sphboard_post`.`thread_id`', '`sphboard_post`.`postdate`', '`sphboard_post`.`author_id`', '`sphboard_post`.`markup`'] self Error in formatting: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") sql u' FROM `sphboard_post` WHERE ((`sphboard_post`.`id` = %s OR `sphboard_post`.`thread_id` = %s)) ORDER BY `sphboard_post`.`postdate` ASC LIMIT 1.0 ' * /usr/local/lib/python2.4/site-packages/django/db/backends/util.py in execute 12. def __init__(self, cursor, db): 13. self.cursor = cursor 14. self.db = db 15. 16. def execute(self, sql, params=()): 17. start = time() 18. try: 19. return self.cursor.execute(sql, params) ... 20. finally: 21. stop = time() 22. self.db.queries.append({ 23. 'sql': smart_unicode(sql) % convert_args(params), 24. 'time': "%.3f" % (stop - start), 25. }) ▶ Local vars Variable Value params [34L, 34L] self <django.db.backends.util.CursorDebugWrapper object at 0xb5b3fccc> sql u'SELECT `sphboard_post`.`id`,`sphboard_post`.`status`,`sphboard_post`.`category_id`,`sphboard_post`.`subject`,`sphboard_post`.`body`,`sphboard_post`.`thread_id`,`sphboard_post`.`postdate`,`sphboard_post`.`author_id`,`sphboard_post`.`markup` FROM `sphboard_post` WHERE ((`sphboard_post`.`id` = %s OR `sphboard_post`.`thread_id` = %s)) ORDER BY `sphboard_post`.`postdate` ASC LIMIT 1.0 ' start 1193257727.567373 stop 1193257727.582046 * /usr/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-linux-i686.egg/MySQLdb/cursors.py in execute 159. else: 160. self.messages.append((TypeError, m)) 161. self.errorhandler(self, TypeError, m) 162. except: 163. exc, value, tb = exc_info() 164. del tb 165. self.messages.append((exc, value)) 166. self.errorhandler(self, exc, value) ... 167. self._executed = query 168. if not self._defer_warnings: self._warning_check() 169. return r 170. 171. def executemany(self, query, args): 172. ▶ Local vars Variable Value ListType <type 'list'> TupleType <type 'tuple'> args [34L, 34L] charset u'utf8' db <weakproxy at 0xb5b9c02c to Connection at 0x857236c> exc <class _mysql_exceptions.ProgrammingError at 0xb789c2fc> exc_info <built-in function exc_info> query u'SELECT `sphboard_post`.`id`,`sphboard_post`.`status`,`sphboard_post`.`category_id`,`sphboard_post`.`subject`,`sphboard_post`.`body`,`sphboard_post`.`thread_id`,`sphboard_post`.`postdate`,`sphboard_post`.`author_id`,`sphboard_post`.`markup` FROM `sphboard_post` WHERE ((`sphboard_post`.`id` = 34 OR `sphboard_post`.`thread_id` = 34)) ORDER BY `sphboard_post`.`postdate` ASC LIMIT 1.0 ' self <MySQLdb.cursors.Cursor object at 0xb5bb368c> value <_mysql_exceptions.ProgrammingError instance at 0xb5ba10ec> * /usr/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-linux-i686.egg/MySQLdb/connections.py in defaulterrorhandler 28. error = errorclass, errorvalue 29. if cursor: 30. cursor.messages.append(error) 31. else: 32. connection.messages.append(error) 33. del cursor 34. del connection 35. raise errorclass, errorvalue ... 36. 37. 38. class Connection(_mysql.connection): 39. 40. """MySQL Database Connection Object""" 41. ▶ Local vars Variable Value error (<class _mysql_exceptions.ProgrammingError at 0xb789c2fc>, <_mysql_exceptions.ProgrammingError instance at 0xb5ba10ec>) errorclass <class _mysql_exceptions.ProgrammingError at 0xb789c2fc> errorvalue <_mysql_exceptions.ProgrammingError instance at 0xb5ba10ec> Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/template/__init__.py" in render_node 810. result = node.render(context) File "/usr/local/lib/python2.4/site-packages/django/template/defaulttags.py" in render 112. len_values = len(values) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py" in __len__ 111. return len(self._get_data()) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py" in _get_data 482. self._result_cache = list(self.iterator()) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py" in iterator 189. cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params) File "/usr/local/lib/python2.4/site-packages/django/db/backends/util.py" in execute 19. return self.cursor.execute(sql, params) File "/usr/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-linux-i686.egg/MySQLdb/cursors.py" in execute 166. self.errorhandler(self, exc, value) File "/usr/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-linux-i686.egg/MySQLdb/connections.py" in defaulterrorhandler 35. raise errorclass, errorvalue ProgrammingError at /board/thread/34/ (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.0' at line 1") Request information GET No GET data POST No POST data COOKIES Variable Value sessionid u'925f10c86eb36806c9945cfdbf827662' META Variable Value CONTENT_LENGTH u'' CONTENT_TYPE u'text/plain' DJANGO_SETTINGS_MODULE u'journal.settings' GATEWAY_INTERFACE u'CGI/1.1' G_BROKEN_FILENAMES u'1' HISTSIZE u'1000' HOME u'/root' HOSTNAME u'vps.monkeybargym.com' HTTP_ACCEPT u'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5' HTTP_ACCEPT_CHARSET u'ISO-8859-1,utf-8;q=0.7,*;q=0.7' HTTP_ACCEPT_ENCODING u'gzip,deflate' HTTP_ACCEPT_LANGUAGE u'en-us,en;q=0.5' HTTP_CACHE_CONTROL u'max-age=0' HTTP_CONNECTION u'keep-alive' HTTP_COOKIE u'sessionid=925f10c86eb36806c9945cfdbf827662' HTTP_HOST u'journal.monkeybargym.com:8000' HTTP_KEEP_ALIVE u'300' HTTP_REFERER u'http://journal.monkeybargym.com:8000/board/show/2/' HTTP_USER_AGENT u'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 (Swiftfox)' INPUTRC u'/etc/inputrc' LANG u'C' LESSOPEN u'|/usr/bin/lesspipe.sh %s' LOGNAME u'root' LS_COLORS u'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:' MAIL u'/var/spool/mail/root' MANPATH u'/usr/lib/courier-imap/man:' PATH u'/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin' PATH_INFO u'/board/thread/34/' PWD u'/root/journal' QUERY_STRING u'' REMOTE_ADDR u'76.109.247.149' REMOTE_HOST u'' REQUEST_METHOD u'GET' RUN_MAIN u'true' SCRIPT_NAME u'' SERVER_NAME u'vps.monkeybargym.com' SERVER_PORT u'8000' SERVER_PROTOCOL u'HTTP/1.1' SERVER_SOFTWARE u'WSGIServer/0.1 Python/2.4.3' SHELL u'/bin/bash' SHLVL u'2' SSH_CLIENT u'76.109.247.149 36853 22' SSH_CONNECTION u'76.109.247.149 36853 207.58.180.175 22' SSH_TTY u'/dev/pts/0' STY u'11525.pts-0.vps' TERM u'screen' TERMCAP u'SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#26:co#207:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:po=\\E[5i:pf=\\E[4i:Z0=\\E[?3h:Z1=\\E[?3l:k0=\\E[10~:\\\n\t:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:\\\n\t:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:\\\n\t:F2=\\E[24~:F3=\\EO2P:F4=\\EO2Q:F5=\\EO2R:F6=\\EO2S:\\\n\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=^H:\\\n\t:K2=\\EOE:kB=\\E[Z:*4=\\E[3;2~:*7=\\E[1;2F:#2=\\E[1;2H:\\\n\t:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:%e=\\E[5;2~:%i=\\E[1;2C:\\\n\t:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:\\\n\t:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:' softbrTZ u'America/Chicago' USER u'root' WINDOW u'0' _ u'./manage.py' wsgi.errors <open file '<stderr>', mode 'w' at 0xb7d6c0b0> wsgi.file_wrapper <class 'django.core.servers.basehttp.FileWrapper'> wsgi.input <socket._fileobject object at 0xb68b0bfc> wsgi.multiprocess False wsgi.multithread True wsgi.run_once False wsgi.url_scheme u'http' wsgi.version (1, 0) Settings Using settings module journal.settings Setting Value ABSOLUTE_URL_OVERRIDES {} ADMINS () ADMIN_FOR () ADMIN_MEDIA_PREFIX u'/site_media/admin/media/' ALLOWED_INCLUDE_ROOTS () APPEND_SLASH True AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',) BANNED_IPS () CACHE_BACKEND u'simple://' CACHE_MIDDLEWARE_KEY_PREFIX u'' CACHE_MIDDLEWARE_SECONDS 600 COMMENTS_ALLOW_PROFANITIES False COMMENTS_BANNED_USERS_GROUP None COMMENTS_FIRST_FEW 0 COMMENTS_MODERATORS_GROUP None COMMENTS_SKETCHY_USERS_GROUP None DATABASE_ENGINE u'mysql' DATABASE_HOST u'' DATABASE_NAME u'mbg_journal' DATABASE_OPTIONS {} DATABASE_PASSWORD u'********************' DATABASE_PORT u'' DATABASE_USER u'mbg_mbg' DATETIME_FORMAT u'N j, Y, P' DATE_FORMAT u'N j, Y' DEBUG True DEFAULT_CHARSET u'utf-8' DEFAULT_CONTENT_TYPE u'text/html' DEFAULT_FROM_EMAIL u'webmaster@localhost' DEV_SERVER True DISALLOWED_USER_AGENTS () EMAIL_HOST u'localhost' EMAIL_HOST_PASSWORD u'********************' EMAIL_HOST_USER u'' EMAIL_PORT 25 EMAIL_SUBJECT_PREFIX u'Django ' EMAIL_USE_TLS False FILE_CHARSET u'utf-8' FIXTURE_DIRS () IGNORABLE_404_ENDS ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php') IGNORABLE_404_STARTS ('/cgi-bin/', '/_vti_bin', '/_vti_inf') INSTALLED_APPS ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.comments', 'django.contrib.flatpages', 'journal.food', 'journal.stats', 'journal.goals', 'journal.writing', 'journal.workout', 'journal.travel', 'journal.gazette', 'journal.portal', 'journal.recipes', 'sphene.community', 'sphene.sphboard', 'sphene.sphwiki', 'journal.workouts', 'journal.videolibrary', 'journal.fitnesstest'] INTERNAL_IPS () JING_PATH u'/usr/bin/jing' LANGUAGES (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('es_AR', 'Argentinean Spanish'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Gaeilge'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) LANGUAGES_BIDI ('he', 'ar', 'fa') LANGUAGE_CODE u'en-us' LIB_PATH u'/root/journal/communitytools/sphenecoll' LOGIN_REDIRECT_URL u'/accounts/profile/' LOGIN_URL u'/accounts/login/' LOGOUT_URL u'/accounts/logout/' MANAGERS () MEDIA_ROOT u'/home/mbg/journal/journaltemplates/media/uploads/' MEDIA_URL u'/site_media/uploads/' MIDDLEWARE_CLASSES ('sphene.community.middleware.ThreadLocals', 'sphene.community.middleware.GroupMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware') MONTH_DAY_FORMAT u'F j' PREPEND_WWW False PROFANITIES_LIST u'********************' ROOT_PATH u'/root/journal' ROOT_URLCONF u'journal.urls' SECRET_KEY u'********************' SEND_BROKEN_LINK_EMAILS False SERVER_EMAIL u'root@localhost' SESSION_COOKIE_AGE 1209600 SESSION_COOKIE_DOMAIN None SESSION_COOKIE_NAME u'sessionid' SESSION_COOKIE_SECURE False SESSION_ENGINE u'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE False SESSION_FILE_PATH u'/tmp/' SESSION_SAVE_EVERY_REQUEST False SETTINGS_MODULE u'journal.settings' SITE_ID 1 TEMPLATE_CONTEXT_PROCESSORS ('django.core.context_processors.auth', 'django.core.context_processors.request', 'sphene.community.context_processors.navigation') TEMPLATE_DEBUG True TEMPLATE_DIRS ('/root/journal/journaltemplates', '/root/journal/communitytools/sphenecoll/templates') TEMPLATE_LOADERS ('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source') TEMPLATE_STRING_IF_INVALID u'' TEST_DATABASE_CHARSET None TEST_DATABASE_COLLATION None TEST_DATABASE_NAME None TEST_RUNNER u'django.test.simple.run_tests' TIME_FORMAT u'P' TIME_ZONE u'America/Chicago' TRANSACTIONS_MANAGED False URL_VALIDATOR_USER_AGENT u'Django/0.97-pre-SVN-6525 (http://www.djangoproject.com)' USE_ETAGS False USE_I18N True YEAR_MONTH_FORMAT u'F Y' You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page. |