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.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,15 @@ def view(request, id):
124
124
125
125
More examples are available in the [demo folder](https://github.com/jerivas/django-file-router/tree/main/demo).
126
126
127
+
## Configuration
128
+
129
+
The `file_patterns` function accepts the following arguments:
130
+
131
+
| Arg | Description |
132
+
|---|---|
133
+
|`append_slash`| Boolean. If `True` will add a trailing slash to the generated patterns. |
134
+
|`exclude`| String (glob). If set each file will be checked against this pattern and excluded from the pattern generation process altogether. Useful if you want to completely avoid importing certain files (like tests). |
0 commit comments