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
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.
[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
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
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
> 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
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
7 matches
Mail list logo