Search code examples
pythondjangointernationalizationbuildout

How to run django-admin.py, when django is in an egg?


I have inherited a project, which was deployed with buildout and is running fine. I've made some changes in the translation .po file, but to compile to .mo file I need to run

django-admin.py compilemessages

How can I do this, when the only place I find django-admin.py is in an egg? The project is not using virtualenv.


Solution

  • Apparently, there was a django file, which set all of the eggs to be in sys.path, and then passed commands to django. I don't know if that is standard in buildout, though.