Skip to content

Commit 18a0a17

Browse files
committed
Examples cleanup
1 parent 8a3c304 commit 18a0a17

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ venv
4646

4747
.idea/
4848
.vscode/
49+
50+
#venv files
51+
Scripts/

examples/example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from flask import Flask, render_template, request
44
from flask_googlemaps import GoogleMaps
55
from flask_googlemaps import Map, icons
6-
from dynaconf import FlaskDynaconf
6+
#from dynaconf import FlaskDynaconf
77

88
app = Flask(__name__, template_folder="templates")
9-
FlaskDynaconf(app) # will read GOOGLEMAPS_KEY from .secrets.toml
9+
#FlaskDynaconf(app) # will read GOOGLEMAPS_KEY from .secrets.toml
1010

1111

1212
# you can set key as config
@@ -387,4 +387,4 @@ def clickpost():
387387

388388

389389
if __name__ == "__main__":
390-
app.run(debug=True, use_reloader=True)
390+
app.run(port=5050, debug=True, use_reloader=True)

examples/example_2.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from flask import Flask, render_template
22
from flask_googlemaps import GoogleMaps, Map, icons
3-
from dynaconf import FlaskDynaconf
3+
#from dynaconf import FlaskDynaconf
44
#enter the api key below
55
api = ''
66
app = Flask(__name__)
77
GoogleMaps(app, key = api)
8-
FlaskDynaconf(app)
8+
#FlaskDynaconf(app)
99

1010
import json
1111

@@ -61,8 +61,5 @@ def map_created_in_view():
6161
return render_template("example_2.html", dmap=dmap ,gmap = gmap, wmap = wmap,key = api)
6262

6363

64-
65-
66-
6764
if __name__ == "__main__":
6865
app.run(port=5050, debug=True)

examples/examples_requirements.txt

424 Bytes
Binary file not shown.

flask_googlemaps/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
from json import dumps
66
from typing import Optional, Dict, Any, List, Union, Tuple, Text
7-
import requests as rq
8-
97
import requests
108
from flask import Blueprint, Markup, g, render_template
119

0 commit comments

Comments
 (0)