Hi folks, Have come a bit of a cropper with this one:
We're working on an application that is a front-end project manager for Mercurial source control software. Most of the application is our own custom views, however one thing we'd like to keep is using mercurial's own hgweb application to view repositories. So for example, mosts URL's such as: /<projectname>/ /<projectname>/wiki/ /<projectname>/repos/ Will all generate standard views. However when you view a specific repo, i.e: /<projectname>/repos/<reponame>/ Instead of any custom views, we want to show hgweb: @check_project_permissions('view_repos') def repo_detail(request, slug, repo_name): from mercurial.hgweb.request import wsgiapplication from mercurial.hgweb.hgwebdir_mod import hgwebdir def make_web_app(): project = get_object_or_404(Project, name_short__exact=slug) repo_db = get_object_or_404(Repo, repo_dirname__exact=repo_name) return hgwebdir(str(settings.MERCURIAL_REPOS + project.name_short + '/' + repo_db.repo_dirname + '/.hg/hgrc' )) headers = wsgiapplication(make_web_app) return HttpResponse(headers) Now as you can imagine the page is just blank as I'm not actually passing anything other than the var headers (which is <function run_wsgi at 0x88c641c>). The problem I am having is HOW to I get the now-run WSGI app to display as the page in Django? Any help will be VERY appreciated. -- Tane Piper Blog - http://digitalspaghetti.me.uk Wii: 4734 3486 7149 1830 This email is: [ ] blogable [ x ] ask first [ ] private --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---