You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+17-11Lines changed: 17 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Django-Experiments is best installed via pip:
21
21
22
22
pip install django-experiments
23
23
24
-
This should download django-experiments and any dependencies. If downloading from the repo,
24
+
This should download django-experiments and any dependencies. If downloading from the repo,
25
25
pip is still the recommended way to install dependencies:
26
26
27
27
::
@@ -76,7 +76,7 @@ Next, activate the apps by adding them to your INSTALLED_APPS:
76
76
'experiments',
77
77
]
78
78
79
-
Include 'django.contrib.humanize' as above if not already included.
79
+
Include 'django.contrib.humanize' as above if not already included.
80
80
81
81
Include the app URLconf in your urls.py file:
82
82
@@ -101,7 +101,7 @@ If you want to use the built in retention goals you will need to include the ret
101
101
Experiments and Alternatives
102
102
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103
103
104
-
The experiment can be manually created in your Django admin. Adding alternatives must currently be done in template tags or by calling the relevant code, as described below.
104
+
The experiment can be manually created in your Django admin. Adding alternatives must currently be done in template tags or by calling the relevant code, as described below.
105
105
106
106
An experiment allows you to test the effect of various design
107
107
alternatives on user interaction. Django-Experiments is designed to work
@@ -205,7 +205,7 @@ settings.*
205
205
206
206
After creating an experiment either using the Django admin, or through
207
207
template tags or code, you must enable the experiment in the Django
208
-
admin or manually for it to work.
208
+
admin or manually for it to work.
209
209
210
210
211
211
Goals
@@ -222,7 +222,7 @@ Add the goal to our EXPERIMENT_GOALS tuple in setting.py:
222
222
223
223
EXPERIMENTS_GOALS = ("registration",)
224
224
225
-
Goals are simple strings that uniquely identify a goal.
225
+
Goals are simple strings that uniquely identify a goal.
226
226
227
227
Our registration successful page will contain the goal template tag:
228
228
@@ -233,31 +233,31 @@ Our registration successful page will contain the goal template tag:
233
233
This will be fired when the user loads the page. This is not the only way of firing a goal. In total, there are four ways of recording goals:
234
234
235
235
1. **Django Template Tags** (as above).
236
-
236
+
237
237
::
238
-
238
+
239
239
{% experiment_goal "registration" %}
240
240
241
241
2. **Server side**, using a python function somewhere in your django views:
0 commit comments