Re: Spliting a single result from a db

2008-10-22 Thread Dmitry Dzhus
Dmitry Dzhus wrote: > I've spend a lot of time playing with different approaches to breaking > big text into pieces in the past. Now I'm quite sure that any solution > which tries to split a text _automagically_ sucks no matter what is it > based on — word count, paragraphs, anything. You'll

Re: Spliting a single result from a db

2008-10-22 Thread barbara shaurette
If you do decide to split up the text, it would be worthwhile getting to know some of the built-in template filters: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#truncatewords Playing around with filters like truncatewords, wordcount, and wordwrap might give you some ideas.

Re: Spliting a single result from a db

2008-10-22 Thread Dmitry Dzhus
[EMAIL PROTECTED] wrote: > HI all, > > I've just starting using django and am really impressed. In my simple > app I want to retrieve a single "article" from a db and then display > it broken into reasonable length pages (either based on word count or > a specific markup in the text). I'd

Re: Spliting a single result from a db

2008-10-22 Thread Tim O'Toole
oh right, cool. Thanks a million. so after splitting like you suggest I could use pagination? On Wed, Oct 22, 2008 at 9:10 AM, Daniel Roseman < [EMAIL PROTECTED]> wrote: > > On Oct 22, 9:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > HI all, > > > > > I've just starting using django

Re: Spliting a single result from a db

2008-10-22 Thread Daniel Roseman
On Oct 22, 9:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > HI all, > > > I've just starting using django and am really impressed. In my simple > > app I want to retrieve a single "article" from a  db and then display > > it broken into reasonable length pages (either based on word

Re: Spliting a single result from a db

2008-10-22 Thread [EMAIL PROTECTED]
> HI all, > > I've just starting using django and am really impressed. In my simple > app I want to retrieve a single "article" from a db and then display > it broken into reasonable length pages (either based on word count or > a specific markup in the text). I'd really appreciate any pointers

Spliting a single result from a db

2008-10-21 Thread [EMAIL PROTECTED]
HI all, I've just starting using django and am really impressed. In my simple app I want to retrieve a single "article" from a db and then display it broken into reasonable length pages (either based on word count or a specific markup in the text). I'd really appreciate any pointers on how I