rvanlaar/djangorecipe — Issue #35: manage.py subcommand from django-staticfiles isn't available in bin/django
Author: rvanlaar
Created: 2011-12-27 21:40:42+00:00
State: open
Labels: Invalid, Undecided

I've added the django-staticfiles add-on (http://pypi.python.org/pypi/django-staticfiles), which adds a "build_static" subcommand.

It does not show up in the bin/django command as generated by djangorecipe. "bin/django help" does not list it and "bin/django build_static" gives "Unknown command: 'build_static'"

I'll start digging into this myself later this week unless I missed something obvious.

For completeness sake the contents of my bin/django::

#!/usr/bin/python

import sys
sys.path[0:0] = [
'/home/reinout/svn/nens/lizard-ui',
'/home/reinout/.buildout/eggs/djangorecipe-0.20-py2.6.egg',
'/home/reinout/.buildout/eggs/zc.recipe.egg-1.2.2-py2.6.egg',
'/home/reinout/.buildout/eggs/zc.buildout-1.4.3-py2.6.egg',
'/home/reinout/.buildout/eggs/django_staticfiles-0.2.0-py2.6.egg',
'/home/reinout/svn/nens/lizard-ui/parts/django',
'/home/reinout/.buildout/eggs/distribute-0.6.10-py2.6.egg',
'/home/reinout/svn/nens/lizard-ui/parts/django',
'/home/reinout/svn/nens/lizard-ui',
]

import djangorecipe.manage

if __name__ == '__main__':
djangorecipe.manage.main('lizard_ui.testsettings')