Closed GoogleCodeExporter closed 8 years ago
How to make the new model work and export old messages:
$ mysql -u root -p
mysql> use yourdbname;
mysql> ALTER TABLE forum_post ADD COLUMN body_html longtext;
mysql> UPDATE forum_post SET body_html='Empty!';
mysql> exit
$ python manage.py shell
>>> from markdown import markdown
>>> from forum.models import Post
>>>
>>> for post in Post.objects.all():
... post.body_html = markdown(post.body)
... post.save()
...
>>> exit()
Original comment by byme...@gmail.com
on 6 Aug 2009 at 10:55
Added in SVN r52. Thanks!
Existing users will need to update their database as mentioned above (and in the
README file)
Original comment by rwpoul...@gmail.com
on 27 Aug 2009 at 10:08
Original issue reported on code.google.com by
byme...@gmail.com
on 6 Aug 2009 at 10:54Attachments: