def today(today=None):
    if (today is not None):
        return (dateparse.parse_date(today) if isinstance(today, basestring) else today)
    elif (not getattr(settings, 'FAKE_DATE', True)):
        return datetime.date.today()
    elif isinstance(config.CURRENT_DATE, datetime.date):
        return config.CURRENT_DATE
    return datetime.date(*[int(i) for i in config.CURRENT_DATE.split('-')])
def today(today=None):
    if (today is not None):
        return (dateparse.parse_date(today) if isinstance(today, basestring) else today)
    elif (not getattr(settings, 'FAKE_DATE', True)):
        return datetime.date.today()
    elif isinstance(config.CURRENT_DATE, datetime.date):
        return config.CURRENT_DATE
    return datetime.date(*[int(i) for i in config.CURRENT_DATE.split('-')])