Skip to content

Commit fbb79d7

Browse files
committed
[SDK-165]: Added dotenv plugin to Django example project
1 parent 5aa820b commit fbb79d7

File tree

1 file changed

+6
-0
lines changed
  • examples/yoti_example_django/yoti_example

1 file changed

+6
-0
lines changed

examples/yoti_example_django/yoti_example/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
from django.views.generic import TemplateView
44

5+
from os.path import join, dirname
6+
from dotenv import load_dotenv
7+
8+
dotenv_path = join(dirname(__file__), '.env')
9+
load_dotenv(dotenv_path)
10+
511
from yoti_python_sdk import Client
612
from .app_settings import (
713
YOTI_APPLICATION_ID,

0 commit comments

Comments
 (0)