#4491 (React doesn't work without the "users" plugin)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kurzbeschreibung
Example: lino_book.projects.events. Change the settings.py file to use react as the default_ui. And then runserver says "AttributeError: AttrDict instance has no key 'users' (...)"
Kinder
Kommentare
- 4 Jahre, 5 Monate ago von Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) : React were already working even if there were no users plugin. It was one of my change that introduced the bug. I fixed the issue now. It was my mistake to NOT think it over that the users plugin might NOT always be there.
- 4 Jahre, 5 Monate ago von Sharif Mehedi Antwort auf Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) : Okay! I see that the renderer knows how to work without users. Only the JavaScript needs to become aware of it.
- 4 Jahre, 5 Monate ago von Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) (1 Antwort) : When there's no users plugin, what should be the name of the json files? Looks to me that this feature requires some intensive work.
- 4 Jahre, 5 Monate ago von Luc Saffre Antwort auf Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) : Yes: lino_book.projects.events
- 4 Jahre, 5 Monate ago von Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) (1 Antwort) : Is there an example project that does NOT uses `users` plugin?
- 4 Jahre, 6 Monate ago von Luc Saffre about #4491 (React doesn't work without the "users" plugin) : Not urgent. Having React front end also work for sites without authentication is rather an academic exercise, nobody pays us for doing this. Do it only when this change will make Lino more elegant. I wait for this (patiently) before adding screenshots to the [url dev.lino-framework.org/specs/events/...