I have skimmed the official zc.buildout
documentation and some tuts but I haven't found a clear answer to the following question.
Suppose I wanted to automate the following changes in every Django project(Django1.4) from now on, can all of those changes get executed by merely by a buildout.cfg
file?
After doing $ django-admin.py startproject my_project
, example of changes of the default startproject I would implement:
$ mkdir ~/path/to/my_project/my_project/db
settings.py:
import os
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(ROOT_PATH, 'db/my_project.db'),
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
I currently build and use my own customized distribution of the 1.4 branch of the Django source as a solution but it would be nice to know if I could do it using buildout as well.