code: def now(tzinfo=True):
      
      if dj_now:
          return dj_now()
  
      if tzinfo:
          # timeit shows that datetime.now(tz=utc) is 24% slower
          return datetime.utcnow().replace(tzinfo=utc)
      return datetime.now()
docs: Return an aware or naive datetime.datetime, depending on settings.USE_TZ.