<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _create_djset(args, cls):
 """ Return a DjSecret object """

    name = args.get('--name')
    settings = args.get('--settings')
    if name:
        return cls(name=name)
    elif settings:
        return cls(name=settings)
    else:
        return cls()