Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AlekSIS®
Libraries
django-iconify
Commits
6c5283e7
Verified
Commit
6c5283e7
authored
Jun 22, 2022
by
Dominik George
🍻
Browse files
Document allow/disallow feature
parent
f0de1230
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
6c5283e7
...
...
@@ -51,6 +51,23 @@ collections in your settings::
If you do not use `django-yarnpkg`_, construct the path manually, ot use
whatever mechanism your asset manager provides.
You can configure which icon collections are available using two settings:
ICONIFY_COLLECTIONS_ALLOWED = ["foo", "bar"]
This list controls which collections can be used. If it is set to a
non-empty list, only the collections listed are allowed.
ICONIFY_COLLECTIONS_DISALLOWED = ["foo", "bar"]
This list, on the other hand, controls which collections cannot be used.
If this list contains values, while `COLLECTIONS_ALLOWED` doesn't, all
collections except the listed ones are allowed.
The allow/disallow feature can be used in cases where only a limited set
of collections should be available due to design principles or for legal
reasons.
Finally, include the URLs in your `urlpatterns`::
from django.urls import include, path
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment