File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,14 @@ Installation
9
9
* Install * ipcalc* library.
10
10
* Add django_ban in you INSTALLED_APPS.
11
11
* Add option ** BAN_POLICY** :
12
- ` BAN_POLICY = 'deny,allow' ` or ` BAN_POLICY = 'allow,deny' `
12
+ ` BAN_POLICY = 'deny,allow' ` or ` BAN_POLICY = 'allow,deny' ` .
13
+
13
14
In first case it means that all users are allowed by default,
14
- second case restricts access to all users who not in * allow* list.
15
+ second case restricts access to all users who not in * allow* list
16
+
15
17
** Default value is 'allow,deny'**
16
- * Add ` 'django_ban.middleware.Ban' ` to your `MIDDLEWARE_CLASSESz.
18
+
19
+ * Add ` 'django_ban.middleware.Ban' ` to your ` MIDDLEWARE_CLASSES ` .
17
20
* Run ./manage.py syncdb, to create necessary tables.
18
21
* Add one or more entries to the Allow or Deny lists in the admin
19
22
interface. You can just enter a single IP or use a network mask,
You can’t perform that action at this time.
0 commit comments