jakul / django-transifex

Django integration with python-transifex
20 stars 8 forks source link

django 1.8 support #15

Open oppianmatt opened 8 years ago

oppianmatt commented 8 years ago

With django moving to argparse the management command now fails:

usage: manage.py tx [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
                    [--pythonpath PYTHONPATH] [--traceback] [--no-color]
manage.py tx: error: unrecognized arguments: pull_translations

basically this SO answer http://stackoverflow.com/questions/30230490/django-custom-command-error-unrecognized-arguments

A work around until the package is updated in pypi is to copy the tx.py file and put this in:

def add_arguments(self, parser):
        parser.add_argument('args', nargs="+")