On Oct 25, 7:04 pm, eaman wrote:
> On Oct 25, 6:46 pm, "J. Cliff Dyer" wrote:
> [CUT]> What have you got so far?
I found this tutorial[1] that quite nails it, now I can traverse
through document
and extract a piece of content.
I guess I'll have to learn to use a transf
On Oct 25, 6:46 pm, "J. Cliff Dyer" wrote:
[CUT]
> What have you got so far?
About 10 documents, longest one is around ~2700 'lines'.
...and I'm reading docutils documentation [1]
and a blog entry quite near my topic [2]
> If you check out the docutils documentation,
> you might find docutils.
I'm developing a web site in django to manage guides / howtos
that I've been writing in reStructuredText.
I'd like to display each section of them in a single page,
how can I parse the reStructuredText to get titles / context of single
sections?
--
You received this message because you are subscr
On Feb 8, 3:38 am, Eric Abrahamsen wrote:
[CUT]
> Now that you've got a date attribute, why not use that for next and
> previous?
1. Date based next and prev go throught the whole photo set,
but I prefer next and prev to provide only items inside a gallery.
But I guess that's just me unable to p
revious' item then
using
aggregate(Max('id'))?
- I guess the if /else conditional loop that should check the
existence of the prev | next item is suboptimal...
/eaman
--
You received this message because you are subscribed to the Google Groups
"Django users" group
On Feb 7, 2:56 pm, Eric Abrahamsen wrote:
> On Feb 7, 2010, at 8:54 PM, eaman wrote:
[CUT]
> The lazy option would probably be to add get_next() and get_previous()
> methods to your model, that return an instance based on whatever
> definition of "next" and "p
zy' optiond is to add a date field to my model and
get the free pagination. Or code my own view, of course.
Thanks.
/eaman
[CUT]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...
Hello, I have a quite simple query set and a related generic views:
http://dpaste.com/155494/
And template for generating a detail page of a photo.
Is there an easy way to have a link to previous | next element in the
template
without manualy coding a view ?
Somthing like a:
{% if foto.next_item
tion does the trick.
If someone else would find it of use, just add the filename to the
path like:
def _get_photo_upload_to(instance, filename):
#return os.path.abspath(instance.galleria.dir + 'foto').replace('\
\', '/')
return (instance.galleria.dir + '/foto
Hello, I'm working on a photo gallery web app, and
I've got a question aboute the models:
class Gallery(models.Model):
title = models.CharField(max_length=30)
dir = models.CharField(max_length=20)
class Photo(models.Model):
title = models.CharField(max_l
10 matches
Mail list logo