VingtCinq / django-factory-generator

Generate (factory_boy) Model Factory for each model of your Django app
MIT License
13 stars 7 forks source link

FACTORY_ROOT_DIR setting #3

Open onno-timmerman opened 3 years ago

onno-timmerman commented 3 years ago

FACTORY_ROOT_DIR setting: has a problem. When you want for some reason to but the factories in a subdirectory example. "somestuff/factories" then all the init.py and import will have the "/" in it. This patch should solve that problem by adding python_path to the class and replacing the / with a .