diff options
Diffstat (limited to 'bn_django/git_wiki/views.py')
-rw-r--r-- | bn_django/git_wiki/views.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/bn_django/git_wiki/views.py b/bn_django/git_wiki/views.py index 60f00ef..d9ce15f 100644 --- a/bn_django/git_wiki/views.py +++ b/bn_django/git_wiki/views.py @@ -1 +1,43 @@ +import settings +from django import forms, http, template +from django.contrib.auth.decorators import login_required +from django.shortcuts import get_object_or_404, render_to_response +from django.http import HttpResponse + +import os, commands + +from models import * + +try: + GITWIKI_BASE = settings.GITWIKI_BASE+'/' +except AttributeError: + GITWIKI_BASE='/home/' + +try: + GITCOMMAND = settings.GITCOMMAND +except AttributeError: + GITCOMMAND='git' + + # Create your views here. + +def frontpage(request): + + return render_to_response('git_wiki/frontpage.html', \ + dict()) + +def item(request, req=''): + #GITPREFIX = models.getGITPREFIX() + #i = Item() + #i.update() + + return render_to_response('git_browse/item.html', + dict(item=i)) + +def olditem(request, hash): + #GITPREFIX = models.getGITPREFIX() + #i = Item() + #i.update() + + return render_to_response('git_browse/olditem.html', + dict(item=i)) |