Archives August 2016

Dynamic documentation of Django commands

Published Aug. 7, 2016 in Development, Documentation, Web - Last update on Aug. 7, 2016.

I'm updating Django-DBBackup's documentation and don't want to copy/paste piece of code in docs, especialy commands' usages text. Fortunately optparse and argparse have the helpful parser.print_usage() method. Unfortunately there's no Sphinx plugin to simply get these outputs and include in docs. It's time to get on the job.

Continue reading

Compatibility optparse argparse Django

Published Aug. 5, 2016 in Development, Tests and quality - Last update on Aug. 5, 2016.

Django 1.10 is here ! Above its new features there are some deleted code and I came up against optparse removing. To be honest, this module is deprecated since Python 2.7 (still here in 3.6), deprecated in Django since 1.7 and removed in 1.10.

Don't blame me too fast, I ...

Continue reading

Daily archives

Previous month

July 2016

Next month

September 2016

Archives