import os
import tmdbsimple

tmdbsimple.API_KEY = os.environ['MM2_TMDB_API_KEY']

import os
import tmdbsimple
from django.conf import settings

tmdbsimple.API_KEY = os.environ['MM2_TMDB_API_KEY'] or settings.MM2_TMDB_API_KEY

Load API_KEY from django settings.py file as an alternative
Load API_KEY from django settings.py file as an alternative

  import os
  import tmdbsimple
+ from django.conf import settings
  
- tmdbsimple.API_KEY = os.environ['MM2_TMDB_API_KEY']
+ tmdbsimple.API_KEY = os.environ['MM2_TMDB_API_KEY'] or settings.MM2_TMDB_API_KEY
  
Load API_KEY from django settings.py file as an alternative
## Code Before:
import os
import tmdbsimple

tmdbsimple.API_KEY = os.environ['MM2_TMDB_API_KEY']

## Instruction:
Load API_KEY from django settings.py file as an alternative
## Code After:
import os
import tmdbsimple
from django.conf import settings

tmdbsimple.API_KEY = os.environ['MM2_TMDB_API_KEY'] or settings.MM2_TMDB_API_KEY
