Sunday, January 28, 2018

Re: num2words - help

On 2018-01-28 17:30, Ariel Matysiak wrote:
> Hello :)
>

Howdy!

> It's my first post in here.
>
> I've made simple model and simple app.
>
> I want to use num2words library and I want to see my "cash" i words.
>
> I don't know how to do it/
>
> Can you help me ???
>

I'm not really sure I understand your question, but maybe you should
look into the humanize template filter:

https://docs.djangoproject.com/en/2.0/ref/contrib/humanize/

If you really need to use the num2words library, you should probably
write a custom filter for that. The documentation should have all the
information you need:

https://docs.djangoproject.com/en/2.0/howto/custom-template-tags/

> Please edit code for me.
>

Don't expect people to solve the problem for you. Take your time to
explain the problem you're facing, what you have done to try and solve
it and then ask for help.

Kind regards,

Kasper

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6e257e0d-ac9d-d109-4635-2fe829049077%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment