I'm very pleased to announce that twod.wsgi 1.0 has been released, after several months of production use and preview releases! No bug has been found in the release candidate and therefore the final release has the same code as the candidate one.
twod.wsgi allows Django developers to take advantage of the wealth of existing WSGI software, as the other popular Python frameworks do. It won’t break you existing Django applications because it’s 100% compatible with Django and you can start using the functionality offered by this library progressively.
Get it while it's hot!
Thursday, 22 July 2010
Wednesday, 28 April 2010
Announcing django-audit
As part of some work at 2degrees on ensuring an audit trail for our Django models, we have been working on a project to add under-the-hood auditing to the Django Model class.
We've published an early alpha of this code on launchpad, and hope to have a final release for this package around the end of May to coincide with the deployment of our internal code.
If you can't wait for the documentation, then checkout the code and have a read of the source. Otherwise documentation will be coming along shortly.
We've published an early alpha of this code on launchpad, and hope to have a final release for this package around the end of May to coincide with the deployment of our internal code.
If you can't wait for the documentation, then checkout the code and have a read of the source. Otherwise documentation will be coming along shortly.
Monday, 8 March 2010
Announcing twod.wsgi: Better WSGI support for Django
We are very pleased to announce the first alpha release of twod.wsgi, a library to make WSGI a first-class citizen in Django applications.
twod.wsgi allows Django developers to take advantage of the huge array of existing WSGI software, to integrate 3rd party components which suit your needs or just to improve things which are not within the scope of a Web application framework.
It ships with a PasteDeploy application factory (which gives the enterprise some of what it needs) and full-featured request objects extended by WebOb. It also gives you the ability to serve WSGI applications inside Django, so you can filter the requests they get and/or the responses they return (e.g., to implement Single Sign-On mechanisms). And there's more!
For example, if you wanted to integrate your authentication mechanisms with your Trac application, you could do it in 11 lines of code:
Don't be fooled by the "first alpha release": It's rock-solid. We've been using it for months in our Web site and it's never ever failed. It just means the API might change in a backwards incompatible way by the final release -- Which is very unlikely given how simple it is.
It's also comprehensively documented and tested. For all these reasons, we believe it's safe to say it's production ready.
Be warned, WSGI is very addictive! If you like it, please support it.
twod.wsgi allows Django developers to take advantage of the huge array of existing WSGI software, to integrate 3rd party components which suit your needs or just to improve things which are not within the scope of a Web application framework.
It ships with a PasteDeploy application factory (which gives the enterprise some of what it needs) and full-featured request objects extended by WebOb. It also gives you the ability to serve WSGI applications inside Django, so you can filter the requests they get and/or the responses they return (e.g., to implement Single Sign-On mechanisms). And there's more!
For example, if you wanted to integrate your authentication mechanisms with your Trac application, you could do it in 11 lines of code:
from django.shortcuts import redirect
from django.conf import settings
from twod.wsgi import call_wsgi_app
from trac.web.main import dispatch_request as trac_app
def make_trac(request, path_info):
if path_info.startswith("/login"):
return redirect(request.script_name + "/login")
elif path_info.startswith("/logout"):
return redirect(request.script_name + "/logout")
request.environ['trac.env_path'] = settings.TRAC_PATH
return call_wsgi_app(trac_app, request, path_info)
Don't be fooled by the "first alpha release": It's rock-solid. We've been using it for months in our Web site and it's never ever failed. It just means the API might change in a backwards incompatible way by the final release -- Which is very unlikely given how simple it is.
It's also comprehensively documented and tested. For all these reasons, we believe it's safe to say it's production ready.
Be warned, WSGI is very addictive! If you like it, please support it.
Tuesday, 2 March 2010
twod.wsgi Presentation at the Django User Group in London
Last week I had the pleasure to present twod.wsgi, a library to improve WSGI support in Django, at the Django User Group in London. The slides are now available in OpenDocument and PDF formats.
That day I used a demo application which we are going to publish, possibly on Bitbucket.
We should be releasing twod.wsgi very soon, as soon as the documentation is finished. So stay tuned!
That day I used a demo application which we are going to publish, possibly on Bitbucket.
We should be releasing twod.wsgi very soon, as soon as the documentation is finished. So stay tuned!
Monday, 8 February 2010
Starting to give back
At 2degrees we've wanted to start giving back to the Open Source Community for some time and today we finally have the first usable project: A Buildout recipe that makes PasteDeploy variables available in Buildout parts (DeployRecipes).
It is not the first project we make public; it just happens to be the first one to be usable. We've developed the following ones which are very stable, but their documentation is far from complete as of this writing and therefore they have not been announced yet:
It is not the first project we make public; it just happens to be the first one to be usable. We've developed the following ones which are very stable, but their documentation is far from complete as of this writing and therefore they have not been announced yet:
- The Django plugin for repoze.what.
- A library to make WSGI a first-class citizen in Django.
- A Python wrapper for Clamd.
Subscribe to:
Posts (Atom)