Creating your own Mixer and Django Provider

Asked

Viewed 34 times

1

I saw that in the mixer there are several providers ready

http://fake-factory.readthedocs.org/en/latest/providers.html

http://fake-factory.readthedocs.org/en/master/locales/pt_BR.html

but there is no Provider for products. I wanted to create a Provider for products, so I saw in How to create a Provider

http://fake-factory.readthedocs.org/en/master/index.html#how-to-create-a-Provider

that can create one, and for that need to touch fake-Factory

https://github.com/joke2k/faker/blob/master/faker/providers/person/pt_BR/init.py

using the Faker

https://github.com/joke2k/faker/blob/master/faker/providers/init.py#L93

Ask: How do I create a new product with my own products'?

  • Well, you yourself answered your question. The above links have all the information necessary to fulfill the purpose.

  • Yeah, but I couldn’t, or rather, I don’t know how to put it all together.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.