4134
Part of @thedevs General Rules: @rulesforthedevs Only related to group topic (Python + Python Frameworks) Other @thedevs groups: https://thedevs.network
i use pydantic for password validation but in the reaponse error i get both message and password, i dont need passsword to be in response how to code in that way
Читать полностью…
To be exact you don't know how to use the thirdy part package as well, so it may be useful to learn how to use the module included in the stdlib
Читать полностью…
The documentation is there for you to learn how to use it.
Читать полностью…
All of them in g4 up until season 7, that's about 150 I think... why?
Читать полностью…
Alright, I figured it out... seems like I just had to ask :D
If anyone else running into this issue in the future.
There is this config option:
- https://flask-security-too.readthedocs.io/en/stable/configuration.html#SECURITY_I18N_DIRNAME
It accepts a list of directories, the trick is that you have to add your own translations directory at the END to take precedence. So for now it looks like this to me:
SECURITY_I18N_DIRNAME = ["builtin", "translations"]
by that I mean this structure. I put their .po file next to mine... (I assume the file name is the domain name) but
pybabel compile -d translations
-D flask_security ... but the app still does not pick up the tranlsations.
Читать полностью…
What's your actual question. What are you trying to do?
Читать полностью…
🚫 The Devs Bot banned IG [8501954335].
Reason: Persian/Arabic/Chinese text
Maybe you can find something related to what you want there
Читать полностью…
How many episodes of my little pnues have you watched?
Читать полностью…
Make a blog and post these there you silly
Someone will need these in future
This comment here suggests that what I try is possible:
https://github.com/pallets-eco/flask-security/blob/c12fe92b34ec80b3a56f5cbc706372740eb63a17/flask_security/babel.py#L37-L40
Hi guys! I have an issue I can't figure out myself.
I'm using flask-security in my project which ships it's own traslations (using pybabel)
Now, I don't really like the tone of the translation for a specific language in flask-security, so I would like to override the translation strings.
Is it possible to do from the top level project which is importing flask-security?
Flask-Security translations folder for reference: https://github.com/pallets-eco/flask-security/tree/main/flask_security/translations
It looks to me they use a different domain, that's why they have the fsdomain helper: https://flask-security-too.readthedocs.io/en/stable/customizing.html#localization But I'm not very familiar with how these domains work...
I tried copying their .po file to my project, but pybabel won't automatically compile it which suggests me that I'm doing it wrong...
You can avoid using with but it will end up looking like a c program
Читать полностью…