We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do I have to name the view as 'send_private_file' ?
I get the following error
django.urls.exceptions.NoReverseMatch: Reverse for 'serve_private_file' not found. 'serve_private_file' is not a valid view function or pattern name.
The text was updated successfully, but these errors were encountered:
I solved it by removing the url import lines from app/urls.py to project/urls.py. project/urls.py:
... import private_storage.urls urlpatterns = [ ... path('app/', include(('app.urls', 'app'), namespace='app')), re_path('^private-media/', include(private_storage.urls)), ]
This happened most likely because I have namespaces defined in app/urls.py so the private_storage.urls were not visible any more.
Sorry, something went wrong.
No branches or pull requests
Do I have to name the view as 'send_private_file' ?
I get the following error
django.urls.exceptions.NoReverseMatch: Reverse for 'serve_private_file' not found. 'serve_private_file' is not a valid view function or pattern name.
The text was updated successfully, but these errors were encountered: