def assert_django_code(django_code):
    if ('_' in django_code):
        raise Exception(("Invalid language code %r. Use values like 'en' or 'en-us'." % django_code))
def assert_django_code(django_code):
    if ('_' in django_code):
        raise Exception(("Invalid language code %r. Use values like 'en' or 'en-us'." % django_code))