Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-iconify
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
django-iconify
Commits
6c5283e7
Verified
Commit
6c5283e7
authored
2 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Document allow/disallow feature
parent
f0de1230
No related branches found
Branches containing commit
Tags
0.3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+17
-0
17 additions, 0 deletions
README.rst
with
17 additions
and
0 deletions
README.rst
+
17
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment