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 » News Forum » Support for django 1.0

Page: 1 2 Next

I have just updated this website to the latest version of django (from the SVN trunk which should represent django 1.0) - and fixed all remaining problems.

This should make SCT pretty much compatible with django 1.0. The only problem left is search integration with djapian. As soon as django 1.0 is released, i'm satisfied that SCT will work with it quite stable (i don't receive error mails :) ) I will probably release SCT 0.5 :) which will stay compatible with django 1.0
Hey, we have Signatures !!! Great, isn't it ? ;)
Great news! I am up and running using the latest Django trunk now.

I'll test some more and take a look at tha code changes soon.
Both (django, sphene) gotten from trunk.
During example site execution I'm getting next error:
"
TemplateSyntaxError at /board/show/0/
Caught an exception while rendering: No module named urls
"
weird error message.. when exactly is it displayed ? when starting, when accessing the startpage or when accessing the forum ?

(i hope i can take a closer look tonight.. i'm currently a bit busy)
Hey, we have Signatures !!! Great, isn't it ? ;)
Start page is seems ok.
It's appears when i trying click on the "Board" (http://localhost:8000/board/show/0/) at a first and forthcoming times.
http://dpaste.com/76913/

ps. Thanks for quick feedback.
I am using the latest Django trunk and the latest SCT. But http://localhost:8000/board/show/0/ work for me. Oleg, is your installation new or an upgrade? Mine is an upgrade, that could make a difference I guess.

For me, most ordinary pages appear to work. There is 404 for the About page, though. All pages below http://localhost:8000/admin/ also work, except for Wiki Attachments. That one causes the following template error:

TemplateSyntaxError at /admin/sphwiki/wikiattachment/
Caught an exception while rendering: coercing to Unicode: need string or buffer, FieldFile found

Original Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/Library/Python/2.5/site-packages/django/template/__init__.py", line 915, in render
dict = func(*args)
File "/Library/Python/2.5/site-packages/django/contrib/admin/templatetags/admin_list.py", line 242, in result_list
'results': list(results(cl))}
File "/Library/Python/2.5/site-packages/django/contrib/admin/templatetags/admin_list.py", line 237, in results
yield list(items_for_result(cl,res))
File "/Library/Python/2.5/site-packages/django/contrib/admin/templatetags/admin_list.py", line 161, in items_for_result
value = attr()
File "/Users/jonas/projects/djtrunk/django/db/models/base.py", line 273, in __str__
return force_unicode(self).encode('utf-8')
File "/Library/Python/2.5/site-packages/django/utils/encoding.py", line 49, in force_unicode
s = unicode(s)
TypeError: coercing to Unicode: need string or buffer, FieldFile found
TemplateSyntaxError at /board/show/0/
Caught an exception while rendering: No module named urls
sorry for the late answer, but i found the problem..
i forgot about the 'simpleproject' example when migrating to django 1.0 (newforms admin basically) ...

please update from SVN it should work now ..


btw. i would recommend trying out the CommunityDraft application because the templates are much more advanced than the one in simpleproject ..
Hey, we have Signatures !!! Great, isn't it ? ;)
All pages below http://localhost:8000/admin/ also work, except for Wiki Attachments.
this is now also fixed... the __unicode__ method of the model returned the 'fileupload' .. which in django 1.0 is no longer a string :) fixed that by returning the filename ...
Hey, we have Signatures !!! Great, isn't it ? ;)
Hi,

I just installed the communitydraft application and the attachment didn't work.

I changed some lines dorm the file communitytools/sphenecoll/sphene/sphwiki/views.py replacing
the form_for_model by the ModelForm and it works :o)

The function changed is attachmentEdit.

I put the file in atachment.

Best regards,

manolito
Attachments
The function changed is attachmentEdit.

I put the file in atachment.
cool thanks ! i have just committed your changes.. :)

thanks,
herbert

p.s. sorry for my late reply i read your post at work and somehow forgot about i :(
Hey, we have Signatures !!! Great, isn't it ? ;)

Page: 1 2 Next

Please login to post a reply.



Powered by Sphene Community Tools