re_path(r'^admin/filebrowser/', fbsite.urls) - ValueError

30 views
Skip to first unread message

Mike Dewhirst

unread,
May 7, 2020, 3:48:15 AM5/7/20
to Django users
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
Reply all
Reply to author
Forward
0 new messages