Skip to content

Commit

Permalink
Merge pull request #18 from bdon/master
Browse files Browse the repository at this point in the history
add language code command line option to management command.
  • Loading branch information
yakky committed Jan 24, 2016
2 parents 378a591 + 3e51aa3 commit e94b267
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions statictemplate/management/commands/statictemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,15 @@ class Command(BaseCommand):
action='store',
dest='output',
help='Output file'),
make_option('--language-code', '-l',
action='store',
dest='language_code',
help='Language Code')
)

def handle(self, template, language=None, extra_request=None, **options):
request = {}
language = options.get('language_code', False)
if not language:
language = get_language()
if extra_request:
Expand Down

0 comments on commit e94b267

Please sign in to comment.