Monday, November 24, 2014

Re: Obtaining content from Git

Arg, Google Groups' mobile interface sucks for posting rather than reading. As I was trying to say:

On Tuesday, November 25, 2014 2:43:55 AM UTC+7, reduxionist wrote:
>Hence I was thinking: how much trouble would it be to have Django
>reach into Git rather than its database and obtain data there to be
>filled into template slots? Ideally, there'd be the possibility of
>running a filter (e.g. reStructuredText) between Git and the
>template rendering.

>What I envision is a storage layer (with optional caching) that
>either fetches from the filesystem (with a Git checkout, using mtime
>for cache expiration), or directly from a local Git repo (using
>either commit or blob hash for cache expiration).

>Does anyone know of such a module?
 
Yes:
https://bitbucket.org/bors_ltd/django-gitstorage
(before you fork to github anew, consider updating this existing, but out of date, github mirror: https://github.com/9h37/django-gitstorage)
 
>Would it be hard to write? Where would one start?

Here's a couple of example projects that do similar things.

A git-backed wiki:
https://github.com/mgaitan/waliki

A mercurial based latex hosting site:
https://bitbucket.org/Svedrin/webtex
("This is a Django Project providing a WebTeX service. The way this works is totally ripped from BitBucket: Users have HG Repos, push their Documents into it, and can get a compiled version and other cool stuff over the net.")

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13c2e5eb-0f34-41c8-a77d-6c8b799f1a96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment