Incalement votre

Entries tagged “buildout”

Django, setuptools, distutils and the python environment

written by arrakis, on Oct 10, 2009 7:21:00 PM.

A couple of months ago I started to worked on a django project for a big organisation. I didn't have any experience of django but I came from the pylons/plone/python world.

For me it was logical to use the following architecture for the project:

projectname/
   src/
     django-app1
     django-app2
     django-main-project
   buildout/
     bin/
        django
        buildout
        python
        ...
     development.cfg
     production.cfg
     ...

I found a "good" recipe for django on pypi, djangorecipe. This recipe deploy a django architecture for a buildout-style project. There is a couple of problems with this recipe and with django in setuptools like projects:

1. The first problem with this recipe is that you cannot create your project as an egg, you need to use it directly in your buildout directory. It cause me problem cause all the configuration of my projects and parts of the code need to be in the django-project director. I WANT AN EGG!

2. Secondly, it try to download django from the svn repository, but I want to use the one available from pypi.

3. When I install an application for django, from pypi, I don't wanna be forced to configured it in settings.py. Entry points everybody ?

4. Paster is now the way to work when deploying and creating projects in Python. It would be easier and better to use paster and templates to create new django type of projects.


Maybe I should just re-switch to pylons but I'm not one who could take this decision....

What is your experience with django, buildout and the kind of things ?

 

 

Resume Blog Contact Projects Buildbot Code Slides fr en