Skip to content

Commit

Permalink
Set OMDB apikey from dotenv.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcmander committed Aug 25, 2019
1 parent b9e1efd commit 038e2b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mlist/omdbapi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import json
from datetime import datetime

from django.conf import settings

from urllib.request import urlopen
from urllib.parse import quote

Expand All @@ -10,7 +12,7 @@ class BackendOMDB:
Backend for Internet Movie Database, using OMDB Api
"""

APIKEY = 'da2a56d7'
APIKEY = settings.OMDB_APIKEY

__base_url = "http://www.omdbapi.com/"

Expand Down

0 comments on commit 038e2b9

Please sign in to comment.