djangomavenproject-managementcontinuous-integrationbuild-management

Project management/build tools for a Django project?


Coming from Java development where build and project management tools abound, I'd like to know what's available for Django. I'd really like to use something like Maven for building things, but is there another preferred way of doing it?

I'm really looking for the following:

Is this currently possible with Maven or another tool? I'm embarking on a pretty big project here and I'd like to have a kicking-rad build/project management system like Maven to help the project be able to grow over time.


Solution

  • Two tools come to mind which are both generic python tools - they need not work with Django specifically:

    I am sure there are other packages available. The best advice I can give you is to evaluate them all briefly and pick the one that best fits your scenario/team working style. Note that these are mostly deployment tools - builds in python don't really make sense, since you don't compile python code.

    In terms of CI related stuff, there are three commands from django you need to know about:

    How these are handled really depends on what setup you have available and what tools you choose.

    On compilation: The closest you get to building with python is freeze, a.k.a. py2exe or cxfreeze which produce binaries. Be aware though that all these do is store python bytecode in an exe and pass it through the interpreter, which is a shared object anyway. Also, you can't cxfreeze a django app, since django itself uses dynamic imports which occur at run time and so cannot be evaluated by cxfreeze, which is essentially a compile time tool. So discount building as a task that needs doing. You might see .pyc files appearing in your directory - python converts your python script to python bytecode if changes have been made to it since the last pyc. If no changes have been made, it loads the pyc file from last time. Python bytecode is what gets executed, so this isn't really a speedup in terms of performance, just load time.