@@ -23,7 +23,7 @@ If you're using a system for managing dependencies, you'll want to pin the libra
23
23
Inside your app, you'll want to ** set your ` write_key ` ** before making any analytics calls:
24
24
25
25
``` python
26
- import analytics
26
+ import segment.analytics as analytics
27
27
28
28
analytics.write_key = ' YOUR_WRITE_KEY'
29
29
```
@@ -344,7 +344,7 @@ assert d.tzinfo is not None and d.tzinfo.utcoffset(d) is not None
344
344
``` python
345
345
import dateutil.parser
346
346
347
- import analytics
347
+ import segment.analytics as analytics
348
348
analytics.write_key = ' YOUR_WRITE_KEY'
349
349
350
350
log = [
@@ -475,7 +475,7 @@ To add analytics to your Django web server, you need to include the initializati
475
475
476
476
``` python
477
477
from django.apps import AppConfig
478
- import analytics
478
+ import segment.analytics as analytics
479
479
480
480
class MyAppConfig (AppConfig ):
481
481
@@ -524,7 +524,7 @@ and turn on module logging in your initialization call in `urls.py`.
524
524
525
525
``` python
526
526
import logging
527
- import analytics
527
+ import segment.analytics as analytics
528
528
529
529
analytics.debug = True # turn on debug logging
530
530
analytics.write_key = ' YOUR_WRITE_KEY'
@@ -567,7 +567,7 @@ Be sure to see the full [reference of supported keys](/docs/connections/spec/com
567
567
Check that you have the most recent version.
568
568
569
569
```
570
- python -c "import analytics; print analytics.VERSION"
570
+ python -c "import segment.analytics as analytics; print analytics.VERSION"
571
571
```
572
572
573
573
Does it match [ the most current version] ( https://github.com/segmentio/analytics-python/blob/master/analytics/version.py#L2 ) ?
@@ -591,7 +591,7 @@ easy_install --upgrade segment-analytics-python
591
591
In some cases, you will want to disable threads and send each request synchronously. To do so, you can use the ` sync_mode ` option:
592
592
593
593
``` python
594
- import analytics
594
+ import segment.analytics as analytics
595
595
596
596
analytics.write_key = ' YOUR_WRITE_KEY'
597
597
analytics.sync_mode = True
0 commit comments