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 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 might try to achieve this? I think the built-in paginate seems
> > > to work on multiple objects, so I'm not sure if I can use that?
> >
> > > thanks!
> >
> > no suggestions anyone?
>
> Django is just Python, so you can use normal Python string methods.
>
> If for example you used !-pagebreak-! in your text, you could use
> article.text.split('!-pagebreak-!') to split the text.
> --
> DR.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to