title: django argument of type 'LazySettings' is not iterable; how then to check if a setting exists?
body: <pre><code>from django.conf import settings
  
  def my_view(self, request, *args, **kwargs):
      if 'LOCAL' in settings and settings.LOCAL:
          # do something
  </code></pre>
  
  <blockquote>
    <p>TypeError at ... argument of type
    'LazySettings' is not iterable</p>
  </blockquote>
  
  <p>How then to check if a setting exists?  Otherwise I get an attribute error.  </p>