#4491 (React doesn't work without the "users" plugin)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Résumé
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' (...)"
Concepts sous-jacents
Commentaires
- 4 ans, 5 mois ago by 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 ans, 5 mois ago by Sharif Mehedi in reply to 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 ans, 5 mois ago by Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) (1 reply) : 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 ans, 5 mois ago by Luc Saffre in reply to Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) : Yes: lino_book.projects.events
- 4 ans, 5 mois ago by Sharif Mehedi about #4491 (React doesn't work without the "users" plugin) (1 reply) : Is there an example project that does NOT uses `users` plugin?
- 4 ans, 6 mois ago by 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/...