Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3bcaf commit f84b7dfCopy full SHA for f84b7df
examples/webapi2/sample.py
@@ -1,7 +1,18 @@
1
-import webapp2
2
-import urllib2
3
-import urllib
4
import json
+import os
+import urllib
+import urllib2
5
+import webapp2
6
+
7
+from dotenv import Dotenv
8
9
+# Load Env variables
10
+env = None
11
12
+try:
13
+ env = Dotenv('./.env')
14
+except IOError:
15
+ env = os.environ
16
17
## CHANGE THIS
18
PORT = 3000
@@ -16,7 +27,7 @@
27
<script src="http://cdn.auth0.com/js/lock-6.6.1.min.js"></script>
28
<script type="text/javascript">
29
19
- var lock = new Auth0Lock({'%s', '%s'});
30
+ var lock = new Auth0Lock('%s', '%s');
20
31
21
32
</script>
22
33
<button onclick="lock.show()">Login</button>
0 commit comments