Can anyone help with this please?
File "/var/www/train/train/urls.py", line 49, in <module>
re_path(r'^admin/filebrowser/', fbsite.urls),
File "/usr/local/lib/python3.6/dist-packages/django/urls/conf.py",
line 61, in _path
urlconf_module, app_name, namespace = view
ValueError: not enough values to unpack (expected 3, got 2)
The code below works in Windows 10 in development but refuses to load
during deployment with the above error.
Thank you for any hints
Cheers
Mike
Here is the problem code which *does* work in Windows as per the
Filebrowser docco[1][2] ...
from filebrowser.sites import site
urlpatterns = [
# # # filebrowser/tinymce pre-admin # # # # # # # # # # # # # # # #
# # # #
path('admin/filebrowser/', site.urls),
...
Here is the Windows freeze info ...
bleach==3.1.4
certifi==2020.4.5.1
chardet==3.0.4
coverage==5.1
Django==2.2.12
django-debug-toolbar==2.2
django-filebrowser-no-grappelli==3.7.8 ### same as Ubuntu 18.04 below
django-tinymce4-lite==1.7.5
docutils==0.16
idna==2.7
jsmin==2.2.2
Pillow==5.1.1
psycopg2==2.7.4
pwned-passwords-django==1.4
pytz==2019.3
requests==2.23.0
six==1.11.0
sqlparse==0.3.0
stripe==2.46.0
urllib3==1.23
webencodings==0.5.1
... and Ubuntu 18.04 in production ...
bleach==3.1.0
chardet==3.0.4
Django==2.2.12
django-csp==3.6
django-filebrowser-no-grappelli==3.7.8 ### same as Windows 10 above
django-referrer-policy==1.0
django-tinymce4-lite==1.7.5
docutils==0.14
idna==2.6
jsmin==2.2.2
Pillow==6.0.0
psycopg2==2.7.4
pwned-passwords-django==1.3.2
pytz==2019.1
requests==2.21.0
six==1.11.0
sqlparse==0.3.0
stripe==2.29.4
urllib3==1.22
webencodings==0.5.1
[1] https://django-filebrowser.readthedocs.io/en/latest/quickstart.html
[2] https://github.com/smacker/django-filebrowser-no-grappelli
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/0989007e-6712-bb2c-14b8-689589f95eee%40dewhirst.com.au.