Skip to content

Commit 91786d6

Browse files
committed
chore: bump version and docs
1 parent 0d8f2fc commit 91786d6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ def view(request, id):
124124

125125
More examples are available in the [demo folder](https://github.com/jerivas/django-file-router/tree/main/demo).
126126

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). |
135+
127136
## FAQ
128137

129138
### What about separation of concerns?

file_router/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from django.template import RequestContext, Template
77
from django.urls import path
88

9-
__version__ = "0.3.0"
9+
__version__ = "0.4.0"
1010

1111
DISALLOWED_CHARS = re.compile(
1212
"|".join(

0 commit comments

Comments
 (0)