i got this error after installation to access the index page

3 views
Skip to first unread message

kevi...@gmail.com

unread,
Aug 5, 2007, 1:00:27 PM8/5/07
to snapboard-discuss

AttributeError at /snapboard/threads/
'unicode' object has no attribute 'weekday'
Request Method: GET
Request URL: http://127.0.0.1:8000/snapboard/threads/
Exception Type: AttributeError
Exception Value: 'unicode' object has no attribute 'weekday'
Exception Location: c:\python25\lib\site-packages\django\utils
\dateformat.py in D, line 126
Python Executable: c:\python25\python.exe
Python Version: 2.5.1
Template error

In template d:\djangopro\snapboard\examplesite\snapboard\templates
\snapboard\thread_index.html, error at line 14
Caught an exception while rendering: 'unicode' object has no attribute
'weekday'
4 <div class="index_title">
5 <h2 style="font-size: 152%;">
6 {{ title }}
7 </h2>
8 {% if thread_page %}
9 {% include "snapboard/include/page_navigation.html" %}
10 {% endif %}
11 </div>
12
13 {% if thread_page %}
14 {% for thread in thread_page %}
15 <div class="thread">
16 <p style="margin-top: 10px; margin-bottom: 5px;">
17 <span style="color: #999; font-size: small; float:right;">
18 {{ thread.post_count }} posts started by <b>{{ thread.starter }}</
b>
19 </span>
20 <span style="font-size: 100%;">
21 <b>
22 {% if not category and thread.gsticky %}
23 STICKY
24 {% endif %}


i just installed it, not modify anything.

i can acccess other page other than thread(all discussuons page).
can somebody help me ,thanks!

kevi...@gmail.com

unread,
Aug 6, 2007, 1:11:06 AM8/6/07
to snapboard-discuss
i got it

remove |date:"r T" from {{ thread.date|date:"r T" }}

but i have another 2 error:

1. cannot upload user avatar, error as:
TypeError at /snapboard/profile/
save_file() got an unexpected keyword argument 'save'
Request Method: POST
Request URL: http://127.0.0.1:8000/snapboard/profile/
Exception Type: TypeError
Exception Value: save_file() got an unexpected keyword argument
'save'
Exception Location: c:\python25\lib\site-packages\django\db\models
\manipulators.py in save, line 107


Python Executable: c:\python25\python.exe
Python Version: 2.5.1

2.when i do "set stick", error as:
0500INTERNAL SERVER ERROR[object Object]Date: Mon, 06 Aug 2007
05:09:28 GMT Server: WSGIServer/0.1 Python/2.5.1 Vary: Cookie Content-
Type: text/html
TypeError at /snapboard/rpc/action/
rpc_csticky() keywords must be strings
Request Method: POST
Request URL: http://127.0.0.1:8000/snapboard/rpc/action/
Exception Type: TypeError
Exception Value: rpc_csticky() keywords must be strings
Exception Location: D:\djangopro\snapboard\examplesite\..\examplesite
\snapboard\views.py in rpc, line 164


Python Executable: c:\python25\python.exe
Python Version: 2.5.1


can somebay help me?thanks!

Bo Shi

unread,
Aug 6, 2007, 1:17:30 AM8/6/07
to snapboar...@googlegroups.com
Hi Kevin,

I'll try to take a look tomorrow/today (Monday :))

Reply all
Reply to author
Forward
0 new messages