Skip to content

Commit 8e0950f

Browse files
committed
docs: Quick fixes
1 parent 181a4aa commit 8e0950f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

docs/index.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ SQL
9292
1. Edit alembic.ini setting ``sqlalchemy.url`` to the database that you want to upgrade to 2.0.0.
9393
2. Run the alembic upgrade like so::
9494

95-
$ alembic upgrade 0aedc36acb3f
95+
$ alembic upgrade head
9696
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
9797
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
9898
INFO [alembic.runtime.migration] Running upgrade <base> -> 07c46d368ba4, Initial empty db
@@ -158,6 +158,10 @@ TRACK_USAGE_USE_FREEGEOIP
158158

159159
Turn FreeGeoIP integration on or off. If set to true, then geography information is also stored in the usage logs.
160160

161+
.. versionchanged:: 1.1.
162+
The default server for using geoip integration changed to extreme-ip-lookup.com
163+
164+
161165
TRACK_USAGE_FREEGEOIP_ENDPOINT
162166
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163167
**Values**: URL for RESTful JSON query
@@ -166,11 +170,11 @@ TRACK_USAGE_FREEGEOIP_ENDPOINT
166170

167171
If TRACK_USAGE_USE_FREEGEOIP is True, then this field must be set. Mark the location for the IP address with "{ip}". For example:
168172

169-
"http://example.com/{ip}/?key=484848484abc321"
173+
"http://example.com/json/{ip}/"
170174

171175
would resolve (with an IP of 1.2.3.4) to:
172176

173-
"http://example.com/1.2.3.4/?key=484848484abc321"
177+
"http://example.com/json/1.2.3.4/"
174178

175179
If using SQLStorage, the returned JSON is converted to a string. You will likely want to pass a field list in the URL to avoid exceeding the 128 character limit of the field.
176180

@@ -229,11 +233,13 @@ mongo.MongoStorage
229233
:inherited-members:
230234

231235
mongo.MongoEngineStorage
232-
~~~~~~~~~~~~~~~~~~
236+
~~~~~~~~~~~~~~~~~~~~~~~~
233237
.. autoclass:: flask_track_usage.storage.mongo.MongoEngineStorage
238+
:members:
239+
:inherited-members:
234240

235241
output.OutputWriter
236-
~~~~~~~~~~~~~~~~~~
242+
~~~~~~~~~~~~~~~~~~~
237243
.. autoclass:: flask_track_usage.storage.output.OutputWriter
238244
:members:
239245
:inherited-members:
@@ -326,3 +332,4 @@ Not all Stores support all of these hooks. See the details for more information.
326332
327333
t = TrackUsage(app, [MongoEngineStorage(hooks=[sumUrl])])
328334
335+
.. include:: hooks.rst

0 commit comments

Comments
 (0)