Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Django Private Storage
Commits
cac081d7
Commit
cac081d7
authored
Oct 09, 2023
by
amorilla
Browse files
Backward compatibility
parent
d2845a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
cac081d7
...
...
@@ -17,3 +17,4 @@ docs/_build/
htmlcov/
venv/
.venv/
.settings/
private_storage/servers.py
View file @
cac081d7
...
...
@@ -16,7 +16,7 @@ from django.utils.module_loading import import_string
from
django.views.static
import
serve
,
was_modified_since
@
lru_cache
@
lru_cache
(
maxsize
=
128
)
# for backward compatibility
def
get_server_class
(
path
):
if
'.'
in
path
:
return
import_string
(
path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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