Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Upgrading

Page: 1 2 3 4 Next

What is the procedure for upgrading from a previous verision of sphene to the latest release?

I tried overwritting my communitytools folder with the new realease and running ./manage.py syncdb, but now I keep getting errors.

The first few were complaints about missing field in my db. I added them by hand, but now I'm stick wthi this one:

Traceback (most recent call last):
File "./manage.py", line 11, in ?
execute_manager(settings)
File "/usr/local/lib/python2.4/site-packages/django/core/management/__init__.py", line 264, in execute_manager
utility.execute()
File "/usr/local/lib/python2.4/site-packages/django/core/management/__init__.py", line 215, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.4/site-packages/django/core/management/base.py", line 70, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.4/site-packages/django/core/management/base.py", line 84, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.4/site-packages/django/core/management/base.py", line 166, in handle
return self.handle_noargs(**options)
File "/usr/local/lib/python2.4/site-packages/django/core/management/commands/syncdb.py", line 94, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive)
File "/usr/local/lib/python2.4/site-packages/django/core/management/sql.py", line 457, in emit_post_sync_signal
verbosity=verbosity, interactive=interactive)
File "/usr/local/lib/python2.4/site-packages/django/dispatch/dispatcher.py", line 358, in send
sender=sender,
File "/usr/local/lib/python2.4/site-packages/django/dispatch/robustapply.py", line 47, in robustApply
return receiver(*arguments, **named)
File "/root/journal/communitytools/sphenecoll/sphene/community/management.py", line 91, in do_changelog
sqlstmt = 'ALTER TABLE %s %s' % (backend.quote_name(clazz._meta.db_table), stmt)
AttributeError: 'module' object has no attribute 'quote_name'



Any ideas?

Thanks!
hmm.. i fear the latest subversion version is only compatible with django trunk

i guess you are running django 0.96 ? would it be possible for you to upgrade to django trunk ? if not i have to see if it is possible to support both versions
(the problem is, that between django 0.96 and django trunk database methods where moved from django.db.backend. to django.db.backend.ops)


btw. if your 'syncdb' would have been working you should see a changelog which lists you the columns you need to add .. so you wouldn't have to do it by hand normally ..
Hey, we have Signatures !!! Great, isn't it ? ;)
ok, small correction ..
according to your error message the SCT code tries backend.quote_name .. but.. correct would've been connection.ops.quote_name .. are you sure you've correctly updated SCT's code ?

here is how it looks in my code base:

    sqlstmt = 'ALTER TABLE %s %s' % (connection.ops.quote_name(clazz._meta.db_table), stmt)



edit OK, got it :) .. you've updated to the latest release of SCT :) the fixes for django trunk are only in the SCT trunk, not in the latest SCT release .. (i should read more carefully)


--- Last Edited by Herbert Poul at 2007-10-23 21:26:46 ---
Hey, we have Signatures !!! Great, isn't it ? ;)
Thanks for your quick response!!!

I am running Django trunk (upgraded about a week ago), but I still had sphene in 0.96 compatibility mode. I commented that line from my settings.py, and downloaded the sphene trunk.

.....
Creating table community_permissionflag
Creating table community_role
2007-09-03 00: SQL Statement: ALTER TABLE `sphboard_category` ADD category_type varchar(250)
2007-09-03 01: SQL Statement: UPDATE `sphboard_category` SET category_type = ''
2007-09-03 02: SQL Statement: ALTER TABLE `sphboard_category` ALTER category_type SET NOT NULL
2007-06-15 00: SQL Statement: ALTER TABLE `sphboard_categorylastvisit` ADD oldlastvisit timestamp with time zone
2007-06-16 00: SQL Statement: ALTER TABLE `sphboard_post` ADD markup varchar(250) NULL
Detected changes - Do you want to execute SQL Statements ? (yes,no): yes
Traceback (most recent call last):
File "./manage.py", line 11, in ?
execute_manager(settings)
File "/usr/local/lib/python2.4/site-packages/django/core/management/__init__.py", line 264, in execute_manager
utility.execute()
File "/usr/local/lib/python2.4/site-packages/django/core/management/__init__.py", line 215, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.4/site-packages/django/core/management/base.py", line 70, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.4/site-packages/django/core/management/base.py", line 84, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.4/site-packages/django/core/management/base.py", line 166, in handle
return self.handle_noargs(**options)
File "/usr/local/lib/python2.4/site-packages/django/core/management/commands/syncdb.py", line 94, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive)
File "/usr/local/lib/python2.4/site-packages/django/core/management/sql.py", line 457, in emit_post_sync_signal
verbosity=verbosity, interactive=interactive)
File "/usr/local/lib/python2.4/site-packages/django/dispatch/dispatcher.py", line 358, in send
sender=sender,
File "/usr/local/lib/python2.4/site-packages/django/dispatch/robustapply.py", line 47, in robustApply
return receiver(*arguments, **named)
File "/root/journal/communitytools/sphenecoll/sphene/community/management.py", line 114, in do_changelog
curs.execute( sqlstmt )
File "/usr/local/lib/python2.4/site-packages/django/db/backends/util.py", line 19, in execute
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", line 166, in execute
File "/usr/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-linux-i686.egg/MySQLdb/connections.py", line 35, in defaulterrorhandler
_mysql_exceptions.ProgrammingError: (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 'NOT NULL' at line 1")


So I manually made the changes in the changelog.

I ran ./manage.py syncdb again after manually applying the changes, and it seemed to run clean!

However, when I try to load the sphene forum, I get this:

NoReverseMatch at /board/show/0/
Request Method: GET
Request URL: http://journal.monkeybargym.com:8000/board/show/0/
Exception Type: NoReverseMatch
Exception Value:
Exception Location: /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse, line 283
Python Executable: /usr/local/bin/python
Python Version: 2.4.3
Template error

In template /root/journal/communitytools/sphenecoll/templates/sphene/community/_display_username.html, error at line 3
Caught an exception while rendering:
1 {% load sph_extras %}
2 {% if user %}
3 <a href="{{ user|sph_user_profile_link }}">
4 {% if user.first_name or user.last_name %}
5 {{ user.first_name }} {{ user.last_name }} ({{ user.username }})
6 {% else %}
7 {{ user.username }}
8 {% endif %}
9 </a>
10 {% else %}
11 Anonymous
12 {% endif %}
Traceback (innermost last)
Switch back to interactive 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
[{'user': <User: Help>}]
e
<django.core.urlresolvers.NoReverseMatch instance at 0xb5c747cc>
exc_info
<built-in function exc_info>
node
<Variable Node: user|sph_user_profile_link>
self
[<Text Node: '\n <a href="'>, <Variable Node: user|sph_user_profile_link>, <Text Node: '">\n '>, <If node>, <Text Node: '\n </a>\n'>]
wrapped
<django.template.TemplateSyntaxError instance at 0xb5c74fac>
* /usr/local/lib/python2.4/site-packages/django/template/__init__.py in render
839.
840. def render(self, context):
841. return self.filter_expression.resolve(context)
842.
843. class DebugVariableNode(VariableNode):
844. def render(self, context):
845. try:
846. return self.filter_expression.resolve(context) ...
847. except TemplateSyntaxError, e:
848. if not hasattr(e, 'source'):
849. e.source = self.source
850. raise
851.
852. def generic_tag_compiler(params, defaults, name, node_class, parser, token):
▶ Local vars
Variable Value
context
[{'user': <User: Help>}]
self
<Variable Node: user|sph_user_profile_link>
* /usr/local/lib/python2.4/site-packages/django/template/__init__.py in resolve
591. for func, args in self.filters:
592. arg_vals = []
593. for lookup, arg in args:
594. if not lookup:
595. arg_vals.append(arg)
596. else:
597. arg_vals.append(arg.resolve(context))
598. obj = func(obj, *arg_vals) ...
599. return obj
600.
601. def args_check(name, func, provided):
602. provided = list(provided)
603. plen = len(provided)
604. # Check to see if a decorator is providing the real function.
▶ Local vars
Variable Value
arg_vals
[]
args
[]
context
[{'user': <User: Help>}]
func
<function sph_user_profile_link at 0xb751cca4>
ignore_failures
False
obj
<User: Help>
self
<django.template.FilterExpression object at 0xb5c74c4c>
* /root/journal/communitytools/sphenecoll/sphene/community/templatetags/sph_extras.py in sph_user_profile_link
192. return { 'user': user }
193.
194. @register.filter
195. def sph_user_profile_link(value):
196. """ Returns the URL to the user profile. """
197. req = get_current_request()
198. urlconf = getattr(req, 'urlconf', None)
199. return reverse('sphene.community.views.profile', urlconf, (), { 'user_id': value.id } ) ...
200.
201.
202. import os
203.
204. @register.filter
205. def sph_basename(value):
▶ Local vars
Variable Value
req
<WSGIRequest GET:<QueryDict: {}>, 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_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', '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/show/0/', 'PWD': '/root/journal', 'QUERY_STRING': '', '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 0xb5cb080c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr urlconf
None
value
<User: Help>
* /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
{'user_id': 3L}
urlconf
None
viewname
u'sphene.community.views.profile'
* /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse
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)
288. return result + sub_match
289.
▶ Local vars
Variable Value
args
()
kwargs
{'user_id': 3L}
lookup_view
u'sphene.community.views.profile'
self
<RegexURLResolver journal.urls ^/>

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/__init__.py" in render
846. return self.filter_expression.resolve(context)
File "/usr/local/lib/python2.4/site-packages/django/template/__init__.py" in resolve
598. obj = func(obj, *arg_vals)
File "/root/journal/communitytools/sphenecoll/sphene/community/templatetags/sph_extras.py" in sph_user_profile_link
199. return reverse('sphene.community.views.profile', urlconf, (), { 'user_id': value.id } )
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
283. raise NoReverseMatch

NoReverseMatch at /board/show/0/




Is this the same issue or something new?

Thanks again for your quick response!

--- Last Edited by erikcw at 2007-10-23 21:45:51 ---
the syncdb log you've pasted is actually how it is supposed to be right now (unfortunately) .. since there is no automated schema migration .. i made a simple changelog which only works for one database.. (since it's impossible for me to maintain it for every possible database out there :) ) - i decided to go for postgresql (since that what's i'm using)..
for mysql your approach was right.. simply do it by hand translating the statements to something mysql would understand :)

as for the errors.. they are not directly connected..

do you have something like the following line in your url conf:

  (r'^community/', include('sphene.community.urls'), defaultdict),


or just the entries for wiki and the board ?
Hey, we have Signatures !!! Great, isn't it ? ;)
No, I didn't have that in my urls.py. I added it, and then started getting some sort of Crypto error so I installed pyCrypto.

No I'm getting this again:
NoReverseMatch at /board/show/0/
Request Method: GET
Request URL: http://journal.monkeybargym.com:8000/board/show/0/
Exception Type: NoReverseMatch
Exception Value:
Exception Location: /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse, line 283
Python Executable: /usr/local/bin/python
Python Version: 2.4.3
Template error

In template /root/journal/communitytools/sphenecoll/templates/sphene/community/_display_username.html, error at line 3
Caught an exception while rendering:
1 {% load sph_extras %}
2 {% if user %}
3 <a href="{{ user|sph_user_profile_link }}">
4 {% if user.first_name or user.last_name %}
5 {{ user.first_name }} {{ user.last_name }} ({{ user.username }})
6 {% else %}
7 {{ user.username }}
8 {% endif %}
9 </a>
10 {% else %}
11 Anonymous
12 {% endif %}


it would be interesting for which view it didn't find a reverse lookup .. like in your last problem there was a local variable:

(the last entry in the stack probably)

lookup_view
u'sphene.community.views.profile'

Hey, we have Signatures !!! Great, isn't it ? ;)
Here is the whole error page:

NoReverseMatch at /board/show/0/
Request Method: GET
Request URL: http://journal.monkeybargym.com:8000/board/show/0/
Exception Type: NoReverseMatch
Exception Value:
Exception Location: /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse, line 283
Python Executable: /usr/local/bin/python
Python Version: 2.4.3
Template error

In template /root/journal/communitytools/sphenecoll/templates/sphene/community/_display_username.html, error at line 3
Caught an exception while rendering:
1 {% load sph_extras %}
2 {% if user %}
3 <a href="{{ user|sph_user_profile_link }}">
4 {% if user.first_name or user.last_name %}
5 {{ user.first_name }} {{ user.last_name }} ({{ user.username }})
6 {% else %}
7 {{ user.username }}
8 {% endif %}
9 </a>
10 {% else %}
11 Anonymous
12 {% endif %}
Traceback (innermost last)
Switch back to interactive 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
[{'user': <User: Help>}]
e
<django.core.urlresolvers.NoReverseMatch instance at 0xb5b873ac>
exc_info
<built-in function exc_info>
node
<Variable Node: user|sph_user_profile_link>
self
[<Text Node: '\n <a href="'>, <Variable Node: user|sph_user_profile_link>, <Text Node: '">\n '>, <If node>, <Text Node: '\n </a>\n'>]
wrapped
<django.template.TemplateSyntaxError instance at 0xb5b8732c>
* /usr/local/lib/python2.4/site-packages/django/template/__init__.py in render
839.
840. def render(self, context):
841. return self.filter_expression.resolve(context)
842.
843. class DebugVariableNode(VariableNode):
844. def render(self, context):
845. try:
846. return self.filter_expression.resolve(context) ...
847. except TemplateSyntaxError, e:
848. if not hasattr(e, 'source'):
849. e.source = self.source
850. raise
851.
852. def generic_tag_compiler(params, defaults, name, node_class, parser, token):
▶ Local vars
Variable Value
context
[{'user': <User: Help>}]
self
<Variable Node: user|sph_user_profile_link>
* /usr/local/lib/python2.4/site-packages/django/template/__init__.py in resolve
591. for func, args in self.filters:
592. arg_vals = []
593. for lookup, arg in args:
594. if not lookup:
595. arg_vals.append(arg)
596. else:
597. arg_vals.append(arg.resolve(context))
598. obj = func(obj, *arg_vals) ...
599. return obj
600.
601. def args_check(name, func, provided):
602. provided = list(provided)
603. plen = len(provided)
604. # Check to see if a decorator is providing the real function.
▶ Local vars
Variable Value
arg_vals
[]
args
[]
context
[{'user': <User: Help>}]
func
<function sph_user_profile_link at 0xb76275dc>
ignore_failures
False
obj
<User: Help>
self
<django.template.FilterExpression object at 0xb5b876cc>
* /root/journal/communitytools/sphenecoll/sphene/community/templatetags/sph_extras.py in sph_user_profile_link
192. return { 'user': user }
193.
194. @register.filter
195. def sph_user_profile_link(value):
196. """ Returns the URL to the user profile. """
197. req = get_current_request()
198. urlconf = getattr(req, 'urlconf', None)
199. return reverse('sphene.community.views.profile', urlconf, (), { 'user_id': value.id } ) ...
200.
201.
202. import os
203.
204. @register.filter
205. def sph_basename(value):
▶ Local vars
Variable Value
req
<WSGIRequest GET:<QueryDict: {}>, 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_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=925f10c86eb36806c9945cfdbf827662', 'HTTP_HOST': 'journal.monkeybargym.com:8000', 'HTTP_KEEP_ALIVE': '300', '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/show/0/', 'PWD': '/root/journal', 'QUERY_STRING': '', '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 0xb5b865dc>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> softbr urlconf
None
value
<User: Help>
* /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
{'user_id': 3L}
urlconf
None
viewname
u'sphene.community.views.profile'
* /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse
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)
288. return result + sub_match
289.
▶ Local vars
Variable Value
args
()
kwargs
{'user_id': 3L}
lookup_view
u'sphene.community.views.profile'
self
<RegexURLResolver journal.urls ^/>

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/__init__.py" in render
846. return self.filter_expression.resolve(context)
File "/usr/local/lib/python2.4/site-packages/django/template/__init__.py" in resolve
598. obj = func(obj, *arg_vals)
File "/root/journal/communitytools/sphenecoll/sphene/community/templatetags/sph_extras.py" in sph_user_profile_link
199. return reverse('sphene.community.views.profile', urlconf, (), { 'user_id': value.id } )
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
283. raise NoReverseMatch

NoReverseMatch at /board/show/0/

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_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/show/0/'
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 0xb5b865dc>
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.



hmm.. weird.. this looks exactly the same..
are you sure you have added the community application correctly to the URL configuration ?

can you access the profile page at community/profile/3/ ? (if it was 'community' you have configured)?


(btw. maybe it is better to use [ code ] instead of [ quote ] to paste these messages, because code segments get their own scrollbars :) (overflow:scroll))

--- Last Edited by Herbert Poul at 2007-10-24 07:28:16 ---
Hey, we have Signatures !!! Great, isn't it ? ;)
Here is my urls.py

from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout
from django.conf import settings
from journal import views

defaultdict = { 'groupName': 'journal' }

urlpatterns = patterns('',
    # Example:
    # (r'^journal/', include('journal.foo.urls')),
    (r'^board/', include('sphene.sphboard.urls'), defaultdict),
    (r'^wiki/', include('sphene.sphwiki.urls'), defaultdict),
    (r'^community/', include('sphene.community.urls'), defaultdict),

    # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^comments/', include('django.contrib.comments.urls.comments')),
    #(r'^comments/postfree/', 'views.my_post_free_comment'),# redirect back to commented page.
    (r'^accounts/login/$', login),
    (r'^accounts/logout/$', views.logout_view),
    (r'^logout/$', views.logout_view),
    (r'^food/', include('journal.food.urls')),
    (r'^stats/', include('journal.stats.urls')),
..............




TypeError at /community/profile/3/
'str' object is not callable
Request Method: 	GET
Request URL: 	http://journal.monkeybargym.com:8000/community/profile/3/
Exception Type: 	TypeError
Exception Value: 	'str' object is not callable
Exception Location: 	/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py in _real_get_response, line 81
Python Executable: 	/usr/local/bin/python
Python Version: 	2.4.3
Traceback (innermost last)
Switch to copy-and-paste 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 	
      u'sphene.community.views.profile'
      callback_args 	
      ()
      callback_kwargs 	
      {'group': <Group: journal>, 'user_id': u'3'}
      debug 	
      <module 'django.views.debug' from '/usr/local/lib/python2.4/site-packages/django/views/debug.pyc'>
      e 	
      <exceptions.TypeError instance at 0xb5ba0f0c>
      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 0xb69df78c>>
      request 	
      <WSGIRequest GET:<QueryDict: {}>, 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_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': '/community/profile/3/', 'PWD': '/root/journal', 'QUERY_STRING': '', '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 0xb5b3e374>, '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 0xb6999eac>
      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'>

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)

  TypeError at /community/profile/3/
  'str' object is not callable
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_CONNECTION 	
u'keep-alive'
HTTP_COOKIE 	
u'sessionid=925f10c86eb36806c9945cfdbf827662'
HTTP_HOST 	
u'journal.monkeybargym.com:8000'
HTTP_KEEP_ALIVE 	
u'300'
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'/community/profile/3/'
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 0xb5b3e374>
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.



I've been so impressed by the speed of your responses. This has been the best online support I've ever received! (including commercial products!) :-) I'll owe you a six-pack when this is done...!

Page: 1 2 3 4 Next

Please login to post a reply.



Powered by Sphene Community Tools